From 924cc11a6e5b6ce883241b61692d0f0dfd252197 Mon Sep 17 00:00:00 2001 From: John Fulton Date: Wed, 5 Feb 2020 11:50:15 -0500 Subject: [PATCH] Pass only variables starting with ANSIBLE When config-download runs ceph-ansible it does so by calling Ansible from within Ansible. We all ANSIBLE_* environment variables to the nested Ansible execution. However there was a bug where any variable containing ANSILBE was included, not just those starting with ANSIBLE. This fix ensures we filter out only variables starting with ANSIBLE. Change-Id: I9f3e18dcf520ee7ac6370a49d0ae003a192d9bd3 Closes-Bug: 1862031 (cherry picked from commit b5fc16aea638489e414f247287049ef6af43dcae) --- tripleo_ansible/roles/tripleo-ceph-common/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tripleo_ansible/roles/tripleo-ceph-common/tasks/main.yml b/tripleo_ansible/roles/tripleo-ceph-common/tasks/main.yml index c5a54d2e7..99d8cdbab 100644 --- a/tripleo_ansible/roles/tripleo-ceph-common/tasks/main.yml +++ b/tripleo_ansible/roles/tripleo-ceph-common/tasks/main.yml @@ -36,7 +36,7 @@ - when: ceph_ansible_inherits_calling_ansible_environment block: - name: get all ansible environment variables - shell: "env | grep ANSIBLE_" + shell: "env | grep ^ANSIBLE_" register: env_shell_output ignore_errors: true - name: set calling_ansible_environment_variables