]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
run gather facts at the start 1070/head
authorVasu Kulkarni <vasu@redhat.com>
Tue, 20 Jun 2017 20:49:15 +0000 (13:49 -0700)
committerVasu Kulkarni <vasu@redhat.com>
Thu, 22 Jun 2017 17:35:50 +0000 (10:35 -0700)
since we are using custom playbook inside task, we need
to run gather facts before other playbooks are run.

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
teuthology/task/ceph_ansible.py

index 3e10e874fcf57198e9f9b731c3406de13514a808..7e4c49d463e7d0e4eb4ec8ed3a95fe7a6e576c29 100644 (file)
@@ -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,