Skip to content

Instantly share code, notes, and snippets.

@cbrinker
Last active December 21, 2015 03:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cbrinker/6245217 to your computer and use it in GitHub Desktop.
Save cbrinker/6245217 to your computer and use it in GitHub Desktop.
- hosts: '*eb-*'
sudo: yes
roles:
- { role: httpd, tags: ["httpd"] }
- { role: eb, tags: ["eb"] }
- hosts: '*-pkg-*'
sudo: yes
roles:
- { role: pkg-server, tags: ["package-server"] }
CONTENTS OF
roles/httpd/handlers/main.yml:
---
- name: httpd reload
command: if [ -f /opt/python/etc/supervisord.conf ] ; then supervisorctl -c /opt/python/etc/supervisord.conf restart httpd; else /etc/init.d/httpd graceful ; fi
roles/pkg-server/tasks/main.yml:
- template: src=pkg.j2 dest=/etc/httpd/conf.d/000-pkg.conf
notify: httpd reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment