From 20c8f5b9c356327283098f30dc23ded95da145fd Mon Sep 17 00:00:00 2001 From: Vasu Kulkarni Date: Tue, 20 Jun 2017 13:49:15 -0700 Subject: [PATCH] run gather facts at the start since we are using custom playbook inside task, we need to run gather facts before other playbooks are run. Signed-off-by: Vasu Kulkarni --- teuthology/task/ceph_ansible.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/teuthology/task/ceph_ansible.py b/teuthology/task/ceph_ansible.py index 3e10e874fc..7e4c49d463 100644 --- a/teuthology/task/ceph_ansible.py +++ b/teuthology/task/ceph_ansible.py @@ -18,8 +18,14 @@ log = logging.getLogger(__name__) class CephAnsible(Task): name = 'ceph_ansible' - + # TODO: Eventually, we should drop _default_playbook in favor of site.yml.sample from ceph-ansible.git _default_playbook = [ + # Run gather facts at the top as required by mgr-role + dict( + hosts='all', + become=True, + tasks=[], + ), dict( hosts='mons', become=True, -- 2.39.5