Debian Codegraph @

test/integration/targets/inventory_yaml/runme.sh

raw
1 #!/usr/bin/env bash
2
3 set -eux -o pipefail
4
5 # handle empty/commented out group keys correctly https://github.com/ansible/ansible/issues/47254
6 ANSIBLE_VERBOSITY=0 diff --unified -w <(ansible-inventory -i ./test.yml --list) success.json
7
8 ansible-inventory -i ./test_int_hostname.yml --list 2>&1 | grep 'Host pattern 1234 must be a string'