diff options
author | Sloane Hertel <19572925+s-hertel@users.noreply.github.com> | 2023-04-17 10:22:03 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-17 09:22:03 -0500 |
commit | 62a353c085e10ed8d8713357421a06e00de551f4 (patch) | |
tree | 7df1492b080ac215a82259a5b5d97ef6e7f6ebfb /lib/ansible/playbook/role_include.py | |
parent | 495d48d51eea1ca5eccaecbb4bc96341d759dc2b (diff) | |
download | ansible-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 'lib/ansible/playbook/role_include.py')
-rw-r--r-- | lib/ansible/playbook/role_include.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ansible/playbook/role_include.py b/lib/ansible/playbook/role_include.py index fb49ec4082..75d26fb811 100644 --- a/lib/ansible/playbook/role_include.py +++ b/lib/ansible/playbook/role_include.py @@ -52,9 +52,9 @@ class IncludeRole(TaskInclude): # ATTRIBUTES # private as this is a 'module options' vs a task property - allow_duplicates = NonInheritableFieldAttribute(isa='bool', default=True, private=True) - public = NonInheritableFieldAttribute(isa='bool', default=False, private=True) - rolespec_validate = NonInheritableFieldAttribute(isa='bool', default=True) + allow_duplicates = NonInheritableFieldAttribute(isa='bool', default=True, private=True, always_post_validate=True) + public = NonInheritableFieldAttribute(isa='bool', default=False, private=True, always_post_validate=True) + rolespec_validate = NonInheritableFieldAttribute(isa='bool', default=True, private=True, always_post_validate=True) def __init__(self, block=None, role=None, task_include=None): |