summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/retry_task_name_in_callback/runme.sh
blob: 5f636cd81bbf0d8b78978df46bb9cc98506048db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env bash

set -eux

# we are looking to verify the callback for v2_retry_runner gets a correct task name, include
# if the value needs templating based on results of previous tasks
OUTFILE="callback_retry_task_name.out"
trap 'rm -rf "${OUTFILE}"' EXIT

EXPECTED_REGEX="^.*TASK.*18236 callback task template fix OUTPUT 2"
ansible-playbook "$@" -i ../../inventory test.yml | tee "${OUTFILE}"
echo "Grepping for ${EXPECTED_REGEX} in stdout."
grep -e "${EXPECTED_REGEX}" "${OUTFILE}"