Last active
December 21, 2015 03:49
-
-
Save cbrinker/6245217 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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