mirror of
https://github.com/status-im/ansible-role-mongodb.git
synced 2025-02-03 16:53:40 +00:00
Update testing playbook
This commit is contained in:
parent
630a798de6
commit
e78316d644
@ -17,14 +17,21 @@
|
|||||||
- mongo2
|
- mongo2
|
||||||
- mongo3
|
- mongo3
|
||||||
|
|
||||||
- hosts: "{{ target }}"
|
- hosts: mongo
|
||||||
|
become: no
|
||||||
|
gather_facts: no
|
||||||
|
tasks:
|
||||||
|
- name: gather tasks from all hosts
|
||||||
|
setup:
|
||||||
|
|
||||||
|
- hosts: "{{ target | default('mongo') }}"
|
||||||
become: no
|
become: no
|
||||||
gather_facts: yes
|
gather_facts: yes
|
||||||
roles:
|
roles:
|
||||||
- role: greendayonfire.mongodb
|
- role: greendayonfire.mongodb
|
||||||
when: "'mongo_master' in group_names"
|
when: "'mongo_master' in group_names"
|
||||||
|
|
||||||
- hosts: "{{ target }}"
|
- hosts: "{{ target | default('mongo') }}"
|
||||||
become: no
|
become: no
|
||||||
gather_facts: yes
|
gather_facts: yes
|
||||||
roles:
|
roles:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user