ef554d0378
Change: - Remove two deprecated features - We now error if a playbook is an empty list instead of just skipping - We now error if using 'include' instead of 'import_playbook' Test Plan: - Added new tests for new errors Tickets: - Fixes #74133 Signed-off-by: Rick Elrod <rick@elrod.me> * sanity & changelog Signed-off-by: Rick Elrod <rick@elrod.me>
13 lines
401 B
Bash
Executable file
13 lines
401 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -eux
|
|
|
|
ansible-playbook test_includes.yml -i ../../inventory "$@"
|
|
|
|
ansible-playbook inherit_notify.yml "$@"
|
|
|
|
echo "EXPECTED ERROR: Ensure we fail if using 'include' to include a playbook."
|
|
set +e
|
|
result="$(ansible-playbook -i ../../inventory include_on_playbook_should_fail.yml -v "$@" 2>&1)"
|
|
set -e
|
|
grep -q "ERROR! 'include' is not a valid attribute for a Play" <<< "$result"
|