mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 13:50:22 -07:00
Adding in hostvars to v2 and getting more integration tests working
This commit is contained in:
parent
f9d451eb9c
commit
45212394ca
9 changed files with 85 additions and 8 deletions
|
@ -186,6 +186,11 @@ class TaskExecutor:
|
|||
# Now we do final validation on the task, which sets all fields to their final values
|
||||
self._task.post_validate(variables)
|
||||
|
||||
# And filter out any fields which were set to default(omit), and got the omit token value
|
||||
omit_token = variables.get('omit')
|
||||
if omit_token is not None:
|
||||
self._task.args = dict(filter(lambda x: x[1] != omit_token, self._task.args.iteritems()))
|
||||
|
||||
# Read some values from the task, so that we can modify them if need be
|
||||
retries = self._task.retries
|
||||
if retries <= 0:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue