Exclude callbacks env vars for ceph-ansible

We're working on changing the default callbacks for tripleo but we don't
want to use them when invoking ceph-ansible. We should exclude the
callbacks that were used in the calling env and specifically set the
regular callbacks.

Change-Id: I6ab1709d2e0e0d60d2401281aa3bb88cfea6e5d4
Related-Bug: #1881670
This commit is contained in:
Alex Schultz 2020-06-02 07:25:47 -06:00
parent a180efde78
commit 64313d1f35
2 changed files with 3 additions and 1 deletions

View File

@ -37,7 +37,7 @@
- (ceph_ansible_inherits_calling_ansible_environment | default(false)) | bool - (ceph_ansible_inherits_calling_ansible_environment | default(false)) | bool
block: block:
- name: get all ansible environment variables - name: get all ansible environment variables
shell: "env | grep ^ANSIBLE_" shell: "env | grep ^ANSIBLE_ | grep -v CALLBACK"
register: env_shell_output register: env_shell_output
failed_when: false failed_when: false
delegate_to: localhost delegate_to: localhost

View File

@ -36,6 +36,8 @@
- ANSIBLE_REMOTE_TEMP=/tmp/ceph_ansible_tmp - ANSIBLE_REMOTE_TEMP=/tmp/ceph_ansible_tmp
- ANSIBLE_FORKS=25 - ANSIBLE_FORKS=25
- ANSIBLE_GATHER_TIMEOUT=60 - ANSIBLE_GATHER_TIMEOUT=60
- ANSIBLE_CALLBACK_WHITELIST=profile_tasks
- ANSIBLE_STDOUT_CALLBACK=default
- "{{ calling_ansible_environment_variables|join(' ') }}" - "{{ calling_ansible_environment_variables|join(' ') }}"
- "{{ ceph_ansible_environment_variables|join(' ') }}" - "{{ ceph_ansible_environment_variables|join(' ') }}"
- ansible-playbook - ansible-playbook