15 lines
328 B
Bash
Executable File
15 lines
328 B
Bash
Executable File
#!/bin/bash
|
|
# Wrap ansible-playbook, setting up some test of the test environment.
|
|
|
|
# Used by delegate_to.yml to ensure "sudo -E" preserves environment.
|
|
export I_WAS_PRESERVED=1
|
|
|
|
if [ "${ANSIBLE_STRATEGY:0:7}" = "mitogen" ]
|
|
then
|
|
extra="-e is_mitogen=1"
|
|
else
|
|
extra="-e is_mitogen=0"
|
|
fi
|
|
|
|
exec ansible-playbook $extra "$@"
|