From: Vasu Kulkarni Date: Tue, 20 Jun 2017 20:49:15 +0000 (-0700) Subject: run gather facts at the start X-Git-Tag: 1.1.0~417^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1070%2Fhead;p=teuthology.git 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 --- diff --git a/teuthology/task/ceph_ansible.py b/teuthology/task/ceph_ansible.py index 3e10e874f..7e4c49d46 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,