2019-01-30 21:00:24 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -eux
|
|
|
|
|
2019-03-09 07:59:00 +01:00
|
|
|
ANSIBLE_CONDITIONAL_BARE_VARS=1 ansible-playbook -i ../../inventory play.yml "$@"
|
|
|
|
ANSIBLE_CONDITIONAL_BARE_VARS=0 ansible-playbook -i ../../inventory play.yml "$@"
|
2019-06-03 12:12:33 +02:00
|
|
|
|
|
|
|
export ANSIBLE_CONDITIONAL_BARE_VARS=1
|
|
|
|
export ANSIBLE_DEPRECATION_WARNINGS=True
|
|
|
|
|
|
|
|
# No warnings for conditionals that are already type bool
|
|
|
|
test "$(ansible-playbook -i ../../inventory test_no_warnings.yml "$@" 2>&1 | grep -c '\[DEPRECATION WARNING\]')" = 0
|
|
|
|
|
|
|
|
# Warn for bare vars of other types since they may be interpreted differently when CONDITIONAL_BARE_VARS defaults to False
|
|
|
|
test "$(ansible-playbook -i ../../inventory test_warnings.yml "$@" 2>&1 | grep -c '\[DEPRECATION WARNING\]')" = 2
|