mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Add play context vars to list of variables before post validation
Fixes #12437
This commit is contained in:
parent
05f6e76407
commit
88e1aa94fa
1 changed files with 3 additions and 4 deletions
|
@ -263,11 +263,10 @@ class TaskExecutor:
|
|||
|
||||
# fields set from the play/task may be based on variables, so we have to
|
||||
# do the same kind of post validation step on it here before we use it.
|
||||
self._play_context.post_validate(templar=templar)
|
||||
|
||||
# now that the play context is finalized, we can add 'magic'
|
||||
# variables to the variable dictionary
|
||||
# We also add "magic" variables back into the variables dict to make sure
|
||||
# a certain subset of variables exist.
|
||||
self._play_context.update_vars(variables)
|
||||
self._play_context.post_validate(templar=templar)
|
||||
|
||||
# Evaluate the conditional (if any) for this task, which we do before running
|
||||
# the final task post-validation. We do this before the post validation due to
|
||||
|
|
Loading…
Reference in a new issue