In my role "common" I have:

- name: yum install OS 
updates                                                                         
                                          

   shell: yum update 
-y                                                                              
                                           


and then in my "application" role I have:

- name: install app1                                
  yum: name=app1 state=present
  notify: 
     - restart app1 


This app1 is built in house and deployed to a local yum repo managed by 
jenkins, so every time I run the "common" role it gets updated to the 
latest version. As a result when the 'application' role runs my 'app1' no 
longer needs to be updated so my restart app1 handler never gets executed.

Any ideas how to 'fix this' ?
Today I am simply restarting app1 every time I run ansible on this host 
which is not ideal.


-- 
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/47f7a6df-7d9c-423f-9d24-d72c20450084%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to