mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 23:21:22 -07:00
Only template values in vars_prompt rather than all vars (#39304)
* Only template values in vars_prompt rather than all vars This allows the use of variables in vars_prompt fields but allows variables entered in the prompt to affect play vars rather than throwing an undefined error. Only post validate if there was a vars_prompt * Add tests for vars_prompt
This commit is contained in:
parent
d5662df695
commit
6d38167d49
13 changed files with 254 additions and 14 deletions
|
@ -64,7 +64,7 @@ class Play(Base, Taggable, Become):
|
|||
|
||||
# Variable Attributes
|
||||
_vars_files = FieldAttribute(isa='list', default=[], priority=99)
|
||||
_vars_prompt = FieldAttribute(isa='list', default=[], always_post_validate=True)
|
||||
_vars_prompt = FieldAttribute(isa='list', default=[], always_post_validate=False)
|
||||
|
||||
# Role Attributes
|
||||
_roles = FieldAttribute(isa='list', default=[], priority=90)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue