1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Allow setup to run when using --start-at-task

Fixes #12147
This commit is contained in:
James Cammarata 2015-08-31 22:10:34 -04:00
parent 4be1187fe6
commit 5adcd7054b

View file

@ -130,6 +130,8 @@ class PlayIterator:
break break
else: else:
self.get_next_task_for_host(host) self.get_next_task_for_host(host)
# finally, reset the host's state to ITERATING_SETUP
self._host_states[host.name].run_state = self.ITERATING_SETUP
# Extend the play handlers list to include the handlers defined in roles # Extend the play handlers list to include the handlers defined in roles
self._play.handlers.extend(play.compile_roles_handlers()) self._play.handlers.extend(play.compile_roles_handlers())