Browse Source

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
changes/53/778553/2
Alex Schultz 1 year ago
parent
commit
ff8d309e95
  1. 4
      tripleo_ansible/roles/tripleo_ceph_run_ansible/tasks/main.yml

4
tripleo_ansible/roles/tripleo_ceph_run_ansible/tasks/main.yml

@ -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 %}'

Loading…
Cancel
Save