mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
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.action = 'setup'
|
||||
setup_task.name = 'Gathering Facts'
|
||||
setup_task.tags = ['always']
|
||||
setup_task.args = {
|
||||
'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:
|
||||
setup_task.args['gather_timeout'] = gather_timeout
|
||||
if fact_path:
|
||||
|
||||
Reference in New Issue
Block a user