You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/strategy_host_pinned/runme.sh

11 lines
326 B
Bash

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