Debian Codegraph @

test/integration/targets/inventory-invalid-group/runme.sh

raw
1 #!/usr/bin/env bash
2
3 set -eux
4 set -o pipefail
5
6 command=(ansible-playbook -v -i inventory.ini test.yml)
7 never='Invalid characters were found in group names but not replaced'
8 always='Invalid characters were found in group names and automatically'
9
10 ANSIBLE_TRANSFORM_INVALID_GROUP_CHARS=never "${command[@]}" -l "local-" 2>&1 | grep -c -e "${never}"
11 ANSIBLE_TRANSFORM_INVALID_GROUP_CHARS=always "${command[@]}" -l "local_" 2>&1 | grep -c -e "${always}"
12 ANSIBLE_TRANSFORM_INVALID_GROUP_CHARS=ignore "${command[@]}" -l "local-" 2>&1 | grep -cv -e "${never}" -e "${always}"
13 ANSIBLE_TRANSFORM_INVALID_GROUP_CHARS=silently "${command[@]}" -l "local_" 2>&1 | grep -cv -e "${never}" -e "${always}"