handlers in roles list

Hi,

I just wrote a quick playbook to deploy ActiveMQ here. To configure repos and iptables I’m using some existing roles

The “iptables” role contains a handler to restart iptables on changes ( when the template changes).
This only works if the “iptables” role is the last one in the list. If I put the role in the middle or on top, the handler is not executed. The iptables template is correctly copied to the machine.

I’m not sure if this is normal behaviour.

Ansible version : 1.3.0

This is the playbook with the “iptables” roles as last one in the roles list.

1 —
2 - name: deploy active MQ
3 user: root
4 hosts: all
5
6 vars:
7 ¦ in_ports:
8 ¦ ¦ - 61616
9 ¦ ¦ - 8161
10 ¦ repos: lettergen
11 ¦ ssh_port: 22
12
13 roles:
14 ¦ - yumrepos
15 ¦ - activemq
16 ¦ - iptables

_Vincent

Looks like you have invalid YAML to me with all those “|”'s :slight_smile:

I would recommend sharing something with pastebin.

In any event, there’s nothing up with handlers, but you haven’t shared much for me to look at.

I suspect something isn’t changing so there’s nothing to trigger, but I’d need to see more.