2020-12-21 17:20:52 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -eux
|
|
|
|
|
2021-01-27 20:16:10 +01:00
|
|
|
# test w/o fallback env var
|
2020-12-21 17:20:52 +01:00
|
|
|
ansible-playbook basic.yml -i ../../inventory -e "output_dir=${OUTPUT_DIR}" "$@"
|
2021-01-27 20:16:10 +01:00
|
|
|
|
|
|
|
# test enabled fallback env var
|
|
|
|
ANSIBLE_UNSAFE_WRITES=1 ansible-playbook basic.yml -i ../../inventory -e "output_dir=${OUTPUT_DIR}" "$@"
|
|
|
|
|
|
|
|
# test disnabled fallback env var
|
|
|
|
ANSIBLE_UNSAFE_WRITES=0 ansible-playbook basic.yml -i ../../inventory -e "output_dir=${OUTPUT_DIR}" "$@"
|