Prevent notify from restarting service if something else will

I have the following playbook:

`

With the help of members of the IRC ansible channel, I was able to solve my logic. What I ended up doing was removing the following task:

`

  • name: Enable and start app
    systemd:
    name: guest
    enabled: yes
    state: started
    daemon_reload: yes
    `

Then, I modified the handler for nofity: GUEST service restart to include “enabled: yes | state: restarted | daemon_reload: yes”. This way when it goes through any of the items in the loop, if it sees the change, it’ll restart and reload regardless.