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
This commit is contained in:
parent
0600d05f4c
commit
b5fc16aea6
|
@ -31,7 +31,7 @@
|
|||
- (ceph_ansible_inherits_calling_ansible_environment | default(false)) | bool
|
||||
block:
|
||||
- name: get all ansible environment variables
|
||||
shell: "env | grep ANSIBLE_"
|
||||
shell: "env | grep ^ANSIBLE_"
|
||||
register: env_shell_output
|
||||
ignore_errors: true
|
||||
delegate_to: localhost
|
||||
|
|
Loading…
Reference in New Issue