summaryrefslogtreecommitdiff
path: root/test/integration/targets/include_import/runme.sh
diff options
context:
space:
mode:
authorSloane Hertel <19572925+s-hertel@users.noreply.github.com>2023-04-17 10:22:03 -0400
committerGitHub <noreply@github.com>2023-04-17 09:22:03 -0500
commit62a353c085e10ed8d8713357421a06e00de551f4 (patch)
tree7df1492b080ac215a82259a5b5d97ef6e7f6ebfb /test/integration/targets/include_import/runme.sh
parent495d48d51eea1ca5eccaecbb4bc96341d759dc2b (diff)
downloadansible-62a353c085e10ed8d8713357421a06e00de551f4.tar.gz
fix using templated values for include/import role FA (#80320) (#80378)
* fix using templated values for include/import role options 'public', 'allow_duplicates', and 'rolespec_validate' * pass templated values without changing the instance * Fix templating by setting always_post_validate to True and calling IncludeRole.post_validate() instead ci_complete * add changelog (cherry picked from commit 666188892ed0833e87803a3e80c58923e4cd6bca)
Diffstat (limited to 'test/integration/targets/include_import/runme.sh')
-rwxr-xr-xtest/integration/targets/include_import/runme.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/integration/targets/include_import/runme.sh b/test/integration/targets/include_import/runme.sh
index d384a12e14..078f080b0d 100755
--- a/test/integration/targets/include_import/runme.sh
+++ b/test/integration/targets/include_import/runme.sh
@@ -121,6 +121,11 @@ ansible-playbook valid_include_keywords/playbook.yml "$@"
ansible-playbook tasks/test_allow_single_role_dup.yml 2>&1 | tee test_allow_single_role_dup.out
test "$(grep -c 'ok=3' test_allow_single_role_dup.out)" = 1
+# test templating public, allow_duplicates, and rolespec_validate
+ansible-playbook tasks/test_templating_IncludeRole_FA.yml 2>&1 | tee IncludeRole_FA_template.out
+test "$(grep -c 'ok=4' IncludeRole_FA_template.out)" = 1
+test "$(grep -c 'failed=0' IncludeRole_FA_template.out)" = 1
+
# https://github.com/ansible/ansible/issues/66764
ANSIBLE_HOST_PATTERN_MISMATCH=error ansible-playbook empty_group_warning/playbook.yml