Skip to content

Commit

Permalink
Update testing playbook
Browse files Browse the repository at this point in the history
  • Loading branch information
UnderGreen committed Mar 2, 2018
1 parent 630a798 commit e78316d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tests/site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,21 @@
- mongo2
- mongo3

- hosts: "{{ target }}"
- hosts: mongo
become: no
gather_facts: no
tasks:
- name: gather tasks from all hosts
setup:

- hosts: "{{ target | default('mongo') }}"
become: no
gather_facts: yes
roles:
- role: greendayonfire.mongodb
when: "'mongo_master' in group_names"

- hosts: "{{ target }}"
- hosts: "{{ target | default('mongo') }}"
become: no
gather_facts: yes
roles:
Expand Down

0 comments on commit e78316d

Please sign in to comment.