Debian Codegraph @

test/integration/targets/var_templating/runme.sh

raw
1 #!/usr/bin/env bash
2
3 set -eux
4
5 # this should succeed since we override the undefined variable
6 ansible-playbook undefined.yml -i inventory -v "$@" -e '{"override_value": "overridden by -e"}'
7
8 # this should work since we dont use the variable
9 ansible-playbook undall.yml -i inventory -v "$@"
10
11 # test hostvars templating
12 ansible-playbook task_vars_templating.yml -v "$@"
13
14 # there should be an attempt to use 'sudo' in the connection debug output
15 ANSIBLE_BECOME_ALLOW_SAME_USER=true ansible-playbook test_connection_vars.yml -vvvv "$@" | tee /dev/stderr | grep 'sudo \-H \-S'
16
17 # test vars deprecation
18 ANSIBLE_DEPRECATION_WARNINGS=1 ansible-playbook vars_deprecation.yml "$@"