Debian Codegraph @

test/integration/targets/ansible-console/runme.sh

raw
1 #!/usr/bin/env bash
2
3 set -eux
4
5 # This is a work-around for a bug in host pattern checking.
6 # Once the bug is fixed this can be removed.
7 # See: https://github.com/ansible/ansible/issues/83557#issuecomment-2231986971
8 unset ANSIBLE_HOST_PATTERN_MISMATCH
9
10 echo debug var=inventory_hostname | ansible-console '{{"localhost"}}'
11
12 echo include_role name=end_play | ansible-console localhost 2>&1 | tee err.txt
13 if grep -q "ERROR" err.txt; then
14 echo "Failed to execute end_play"
15 exit 1
16 fi