make fact gathering obey play tags (#44717)

fixes #44251
pull/48285/head
Brian Coca 6 years ago committed by GitHub
parent 329d3b892b
commit 4ec2423a04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,2 @@
bugfixes:
- fact gathering to obey play tags

@ -175,10 +175,14 @@ class PlayIterator:
setup_task = Task(block=setup_block) setup_task = Task(block=setup_block)
setup_task.action = 'setup' setup_task.action = 'setup'
setup_task.name = 'Gathering Facts' setup_task.name = 'Gathering Facts'
setup_task.tags = ['always']
setup_task.args = { setup_task.args = {
'gather_subset': gather_subset, 'gather_subset': gather_subset,
} }
# Unless play is specifically tagged, gathering should 'always' run
if self._play.tags is None:
setup_task.tags = ['always']
if gather_timeout: if gather_timeout:
setup_task.args['gather_timeout'] = gather_timeout setup_task.args['gather_timeout'] = gather_timeout
if fact_path: if fact_path:

Loading…
Cancel
Save