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

set -eu

ansible-playbook playbook.yml "$@" > output.log 2>&1 || true

if grep "task should always execute" output.log >/dev/null; then
  echo "Test passed (playbook failed with expected output, output not shown)."
  exit 0
fi

cat output.log
exit 1