Enable fact bits for ceph execution

ceph-ansible still requires that all the facts be collected by default
and inject fact vars is enabled. We want to turn that off for tripleo,
but in the mean time we need to force it back on when in run ansible for
ceph.

Change-Id: I607c29c45148b57dee34741397cf7a16ced8ef78
Related-Bug: #1915761
Related-Bug: #1917621
This commit is contained in:
Alex Schultz 2021-03-03 12:04:34 -07:00
parent 2bd02cc59a
commit ff8d309e95
1 changed files with 4 additions and 0 deletions

View File

@ -45,6 +45,10 @@
- ANSIBLE_STDOUT_CALLBACK=default
- "{{ calling_ansible_environment_variables|join(' ') }}"
- "{{ ceph_ansible_environment_variables|join(' ') }}"
# NOTE(mwhahaha): we need to force this for now until ansible addresses fact stuff
- ANSIBLE_INJECT_FACT_VARS=True
- ANSIBLE_GATHER_SUBSET="all"
- ANSIBLE_CACHE_PLUGIN="memory"
- ansible-playbook
- '{% if ceph_ansible_private_key_file is defined %}--private-key {{ ceph_ansible_private_key_file }}{% endif %}'
- '{% if ansible_python_interpreter is defined %}-e ansible_python_interpreter={{ ansible_python_interpreter }}{% endif %}'