You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If ansible fails, ansible does not flush handlers.
Expected:
ansible should flush handlers even on fail.
Use case:
...
- name: config file of service named foobar
copy src=foobar.conf dest=/etc/foobar.conf
notify: restart foobar
- name: we make sure foobar is running
# having a typo here...
service: name=foobaR state=running enabled=yes
...
So you see I have a typo in 2nd task (foobaR instead of foobar). so ansible says something like "error: could not find service named foobaR".
In the copy task, file was transferred, but service foobar was never restarted.
The next time you start the play, there is no change, so the service will not restarted again. You have to "remember" it and doing it manually or use --flush-handlers to flush them all.
The text was updated successfully, but these errors were encountered:
Hi
As discussed on Google Groups https://groups.google.com/forum/#!topic/ansible-devel/WsWJYgxxoB0
Problem:
If ansible fails, ansible does not flush handlers.
Expected:
ansible should flush handlers even on fail.
Use case:
So you see I have a typo in 2nd task (foobaR instead of foobar). so ansible says something like "error: could not find service named foobaR".
In the copy task, file was transferred, but service foobar was never restarted.
The next time you start the play, there is no change, so the service will not restarted again. You have to "remember" it and doing it manually or use --flush-handlers to flush them all.
The text was updated successfully, but these errors were encountered: