From d563e3df1cf75aa795febbb16f7fbeed08f336ec Mon Sep 17 00:00:00 2001 From: Alex Schultz Date: Wed, 3 Mar 2021 12:04:34 -0700 Subject: [PATCH] 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 ff8d309e9560826c918081a337a10524e13f4013) --- tripleo_ansible/roles/tripleo_ceph_run_ansible/tasks/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tripleo_ansible/roles/tripleo_ceph_run_ansible/tasks/main.yml b/tripleo_ansible/roles/tripleo_ceph_run_ansible/tasks/main.yml index e290d5e10..c8155cf60 100644 --- a/tripleo_ansible/roles/tripleo_ceph_run_ansible/tasks/main.yml +++ b/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 %}'