From e78316d64449d8384ed9ae6c42e622f019658390 Mon Sep 17 00:00:00 2001 From: Sergei Antipov Date: Fri, 2 Mar 2018 12:41:17 +0700 Subject: [PATCH] Update testing playbook --- tests/site.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tests/site.yml b/tests/site.yml index 204851f3..47d6aee2 100644 --- a/tests/site.yml +++ b/tests/site.yml @@ -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: