2014-12-03 22:09:38 -05:00
|
|
|
---
|
2015-01-07 18:23:43 -05:00
|
|
|
- name: install supervisord
|
|
|
|
apt: name=supervisor state=present
|
|
|
|
sudo: yes
|
2014-12-03 22:09:38 -05:00
|
|
|
|
2015-01-07 18:23:43 -05:00
|
|
|
- name: set permissions on supervisor config and log directories
|
|
|
|
file: path={{ item }} group={{ web_server_group }} state=directory mode=0755
|
|
|
|
with_items:
|
|
|
|
- /etc/supervisor
|
|
|
|
- /etc/supervisor/conf.d
|
|
|
|
- /var/log/supervisor
|
|
|
|
sudo: yes
|
2014-12-03 22:09:38 -05:00
|
|
|
|
2015-01-07 18:23:43 -05:00
|
|
|
- name: modify supervisor configuration
|
|
|
|
ini_file: dest=/etc/supervisor/supervisord.conf section=unix_http_server
|
|
|
|
option={{ item.key }} value={{ item.value }}
|
|
|
|
with_dict:
|
|
|
|
chmod: "0770"
|
|
|
|
chown: root:{{ web_server_group }}
|
|
|
|
sudo: yes
|
2014-12-03 22:09:38 -05:00
|
|
|
|
2015-01-13 22:45:07 -05:00
|
|
|
- name: upload supervisor configuration to web server home
|
|
|
|
template: src=supervisor/app_supervisor.conf dest=/etc/supervisor/conf.d/{{ supervisor_app_config }}
|
2015-01-07 18:23:43 -05:00
|
|
|
sudo: yes
|