From 3c779ac916ed01f527ba3cff7c727812fc4d6c2a Mon Sep 17 00:00:00 2001 From: Jonathan Rosser Date: Tue, 7 Mar 2023 16:27:38 +0000 Subject: [PATCH] Add releasenote for ANSIBLE_INJECT_FACT_VARS defaulting to false Change-Id: Ibfadbc054152c9de91a2ecb989939dbff63eeecd --- .../notes/disable-fact-vars-d792e90de7d79851.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 releasenotes/notes/disable-fact-vars-d792e90de7d79851.yaml diff --git a/releasenotes/notes/disable-fact-vars-d792e90de7d79851.yaml b/releasenotes/notes/disable-fact-vars-d792e90de7d79851.yaml new file mode 100644 index 0000000000..91e5449822 --- /dev/null +++ b/releasenotes/notes/disable-fact-vars-d792e90de7d79851.yaml @@ -0,0 +1,15 @@ +--- +features: + - | + Automatic generation of ``ansible_`` fact vars is now disabled + when using the ``openstack-ansible`` command. There is now less data to + pass to the target hosts when executing ansible modules. The same values + are now accessed as follows: ``ansible_facts['variable']`` +upgrade: + - | + Any external or 3rd party integrations with openstack-ansible that use + the ``openstack-ansible`` command line wrapper around ``ansible-playbook`` + and access ansible facts via the ``ansible_`` pattern must be + refactored to access those variables as follows: ``ansible_facts['variable']``. + If this is not possible, the environment variable ``ANSIBLE_INJECT_FACT_VARS`` + can be set to ``True`` to restore the previous behaviour.