mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Move role cache into the play to avoid roles crossing play boundaries
This commit is contained in:
@@ -25,7 +25,6 @@ from ansible import constants as C
|
||||
from ansible.errors import *
|
||||
from ansible.executor.task_queue_manager import TaskQueueManager
|
||||
from ansible.playbook import Playbook
|
||||
from ansible.playbook.role import role_reset_has_run
|
||||
from ansible.plugins import module_loader
|
||||
from ansible.template import Templar
|
||||
|
||||
@@ -84,9 +83,6 @@ class PlaybookExecutor:
|
||||
self._display.vv('%d plays in %s' % (len(plays), playbook_path))
|
||||
|
||||
for play in plays:
|
||||
# clear out the flag on all roles indicating they had any tasks run
|
||||
role_reset_has_run()
|
||||
|
||||
# clear any filters which may have been applied to the inventory
|
||||
self._inventory.remove_restriction()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user