c7d4acc12f
* allow env var for fallback value for unspecified unsafe_writes
12 lines
418 B
Bash
Executable file
12 lines
418 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -eux
|
|
|
|
# test w/o fallback env var
|
|
ansible-playbook basic.yml -i ../../inventory -e "output_dir=${OUTPUT_DIR}" "$@"
|
|
|
|
# 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}" "$@"
|