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.
@@ -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,
