diff --git a/lib/ansible/executor/play_iterator.py b/lib/ansible/executor/play_iterator.py index 89849988e35..340f8efd548 100644 --- a/lib/ansible/executor/play_iterator.py +++ b/lib/ansible/executor/play_iterator.py @@ -130,6 +130,8 @@ class PlayIterator: break else: 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 self._play.handlers.extend(play.compile_roles_handlers())