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-07 18:23:43 -05:00
|
|
|
- name: upload rookeries supervisor configuration to web server home
|
2015-01-08 18:15:50 -05:00
|
|
|
copy: src=supervisor/{{ item }} dest=/etc/supervisor/conf.d
|
2015-01-07 18:23:43 -05:00
|
|
|
with_items: supervisor_configs
|
|
|
|
sudo: yes
|