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