First ansible deployment very simple, handler doesnt run after playbook re-run

Hello community,

I have made simple nginx, symfony, php ansible playbook. Playbook runs fine both with Vagrant and with “real server”.

Problem is when I change some config values, eg. nginx http port, and re run playbook, the change occurs on the server but handler doesnt run and my web server is not restarted.

Just to mention that handlers run fine on the first playbook run.

So without seeing your playbook there is very very little we can tell about what’s going on.

Perhaps you could upload to the relevant parts to gist or share snippets.

Hi, actually I didnt quite understand notify function. I had notify for nginx restart once in my playbook, the thing I didnt understood is that NOTIFY has to be present in every task that will be changed sometiomes in the future and in every task that needs some action I have to put notify.

Basically

task: every {{ var }}
needs notify: something

Thanks for interest in my question.