Re: [ansible-project] Notify handler only one in the same role

2015-05-28 Thread Steven Truong
Note: these tasks are in the same role. On Thursday, May 28, 2015 at 6:05:35 PM UTC-7, Steven Truong wrote: > > Hi Matt, > > Here are some tasks that call the same notify and it happened that these > files might got changed during the same run. > > - name: creates hadoop .sh config files > temp

Re: [ansible-project] Notify handler only one in the same role

2015-05-28 Thread Steven Truong
Hi Matt, Here are some tasks that call the same notify and it happened that these files might got changed during the same run. - name: creates hadoop .sh config files template: src={{ item }}.j2 dest=/etc/hadoop/conf.{{ nameservice_id }}/{{ item }} owner=hdfs group=hadoop mode=0755 with_ite

Re: [ansible-project] Notify handler only one in the same role

2015-05-28 Thread Matt Martz
I think you are going to need to show an example of the playbook/role and the output of this happening. On Thursday, May 28, 2015, Steven Truong wrote: > Hi all, > > I am using ansible 1.9.1 and in the same role I have a couple of notify to > the same service to be restarted. > > Apparently, an

[ansible-project] Notify handler only one in the same role

2015-05-28 Thread Steven Truong
Hi all, I am using ansible 1.9.1 and in the same role I have a couple of notify to the same service to be restarted. Apparently, ansible tries to restart 3-4 times for each notify and that is undesirable. I could do without notify and create register for each task and then at the end I can