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
(cherry picked from commit ff8d309e95)
changes/18/779318/1
Alex Schultz 2 months ago
parent
commit
d563e3df1c
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      tripleo_ansible/roles/tripleo_ceph_run_ansible/tasks/main.yml

+ 4
- 0
tripleo_ansible/roles/tripleo_ceph_run_ansible/tasks/main.yml 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 %}'


Loading…
Cancel
Save