parent
329d3b892b
commit
4ec2423a04
2 changed files with 7 additions and 1 deletions
2
changelogs/fragments/tag_gathering.yml
Normal file
2
changelogs/fragments/tag_gathering.yml
Normal file
|
@ -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…
Reference in a new issue