Say I have a playbook like this:

- name: install apache config
  copy: src=httpd.conf dest=/etc/httpd.conf
  notify: restart apache
- name: do something that fails
  command: false

I ran it without --force-handlers. The first command ran successfully, and 
reported a change. The second command failed, and as a result, the "restart 
apache" handler doesn't get called.

If I run it again, even with --force-handlers, the first command won't 
report a change, so the handler still won't get called. This leaves the 
node in an incomplete state.

Is there a way to handle this kind of situation easily? Obviously in this 
case I can manually restart Apache, but in more complex cases, I'd like to 
be able to force the handler to run.

Or is the solution to always run with --force-handlers, so it never gets in 
this state to begin with?

Thanks,
Jacob

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/098f601e-673c-4d5e-9483-8f21152c7f91%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to