From 98aa4c60813352b97ac08c71a31eb21d786bc31a Mon Sep 17 00:00:00 2001 From: Ted Cook Date: Tue, 7 Nov 2023 20:15:13 -0600 Subject: [PATCH] Add test online playbook --- galaxy.yml | 2 +- molecule/common/online.yml | 3 +++ molecule/online/molecule.yml | 2 +- playbooks/online.yml | 3 +-- 4 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 molecule/common/online.yml diff --git a/galaxy.yml b/galaxy.yml index a71387e..eac6ece 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -1,7 +1,7 @@ --- namespace: nephelaiio name: mongodb -version: 0.0.8 +version: 0.0.9 readme: README.md authors: - Ted Cook diff --git a/molecule/common/online.yml b/molecule/common/online.yml new file mode 100644 index 0000000..e26bdf0 --- /dev/null +++ b/molecule/common/online.yml @@ -0,0 +1,3 @@ +--- +- name: Import online playbook + import_playbook: nephelaiio.mongodb.online diff --git a/molecule/online/molecule.yml b/molecule/online/molecule.yml index 7e72b8a..40a063e 100644 --- a/molecule/online/molecule.yml +++ b/molecule/online/molecule.yml @@ -123,7 +123,7 @@ provisioner: name: ansible playbooks: converge: ../common/offline.yml - side-effect: ../common/online.yml + side_effect: ../common/online.yml verify: ../common/verify.yml config_options: defaults: diff --git a/playbooks/online.yml b/playbooks/online.yml index da997f3..661dc7d 100644 --- a/playbooks/online.yml +++ b/playbooks/online.yml @@ -1,6 +1,7 @@ --- - name: Start mongos services hosts: "{{ mongodb_mongos | default('mongodb_mongos') }}" + become: true tasks: - name: Include mongos service tasks ansible.builtin.include_role: @@ -8,5 +9,3 @@ tasks_from: service vars: mongos_service_state: started - apply: - become: true