Ansible handler does not run multiple handler tasks

Question:

We have one Ansible role that needs to run three tasks in the handlers/main.yml task file, but it only runs the first task. How do I force it to run the other two tasks? I do have the ignore flag on for if the first task fails.

The tasks/main.yml file looks like:

The handlers/main.yml file looks like:

Only the first handler task (shut down openfire) runs.

Answer:

As of Ansible 2.2, you can now notify multiple handlers at the same time using the listen directive:

Leave a Reply