Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add notify support to Ansible #215

Open
etoccalino opened this issue Feb 6, 2013 · 0 comments
Open

Add notify support to Ansible #215

etoccalino opened this issue Feb 6, 2013 · 0 comments

Comments

@etoccalino
Copy link

Ansible has a concept of notify and handlers. A handler does something like restart nginx or supervisord or update apt-get or something else and is meant to run often. A task can then notify a handler with:

 - name: link nginx config
   action: file src=/etc/nginx/sites-available/${app_name}.conf dest=/etc/nginx/sites-enabled/${app_name}.conf state=link
   notify:
      - restart nginx

Unfortunately, the notifies weren't firing, so Pull Request #210 removes them and manually performs the restarts.

tl;dr: We should figure out why the notifies are not firing and fix them. My guess is something to do with the notification handlers being in different playbooks and not linked correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant