Add run_once as a valid TaskInclude keyword (#48068)

* Add run_once as a valid TaskInclude keyword

* Add changelog fragment

* Add integration test that documents run_once behavior
This commit is contained in:
Jimmy McCrory 2018-11-08 07:29:24 -08:00 committed by Brian Coca
parent 7034d8c47a
commit d2969884b4
5 changed files with 70 additions and 1 deletions

View file

@ -45,7 +45,8 @@ class TaskInclude(Task):
OTHER_ARGS = frozenset(('apply',)) # assigned to matching property
VALID_ARGS = BASE.union(OTHER_ARGS) # all valid args
VALID_INCLUDE_KEYWORDS = frozenset(('action', 'args', 'debugger', 'ignore_errors', 'loop', 'loop_control',
'loop_with', 'name', 'no_log', 'register', 'tags', 'vars', 'when'))
'loop_with', 'name', 'no_log', 'register', 'run_once', 'tags', 'vars',
'when'))
# =================================================================================
# ATTRIBUTES