Skip to content

Commit e78316d

Browse files
committed
Update testing playbook
1 parent 630a798 commit e78316d

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

tests/site.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,21 @@
1717
- mongo2
1818
- mongo3
1919

20-
- hosts: "{{ target }}"
20+
- hosts: mongo
21+
become: no
22+
gather_facts: no
23+
tasks:
24+
- name: gather tasks from all hosts
25+
setup:
26+
27+
- hosts: "{{ target | default('mongo') }}"
2128
become: no
2229
gather_facts: yes
2330
roles:
2431
- role: greendayonfire.mongodb
2532
when: "'mongo_master' in group_names"
2633

27-
- hosts: "{{ target }}"
34+
- hosts: "{{ target | default('mongo') }}"
2835
become: no
2936
gather_facts: yes
3037
roles:

0 commit comments

Comments
 (0)