Debian Codegraph @

test/integration/targets/strategy_host_pinned/runme.sh

raw
1 #!/usr/bin/env bash
2
3 set -o pipefail
4
5 export ANSIBLE_STDOUT_CALLBACK=callback_host_count
6
7 # the number of forks matter, see callback_plugins/callback_host_count.py
8 ansible-playbook --inventory hosts --forks 2 playbook.yml | tee "${OUTPUT_DIR}/out.txt"
9
10 [ "$(grep -c 'host_pinned_test_failed' "${OUTPUT_DIR}/out.txt")" -eq 0 ]