2018-11-18 18:33:40 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Ensure Supervisor is installed.
|
|
|
|
become: true
|
|
|
|
yum:
|
|
|
|
name: supervisor
|
|
|
|
state: present
|
|
|
|
|
|
|
|
- name: Ensure the Supervisor configuration directory exists.
|
|
|
|
become: true
|
|
|
|
file:
|
|
|
|
path: /etc/supervisor/conf.d
|
|
|
|
state: directory
|
|
|
|
|
|
|
|
- name: Copy over the Supervisor configuration.
|
|
|
|
become: true
|
|
|
|
template:
|
|
|
|
src: xppl.conf.j2
|
|
|
|
dest: /etc/supervisor/conf.d/xppl.conf
|
|
|
|
mode: 0644
|
|
|
|
notify: Restart Supervisor.
|
|
|
|
|
|
|
|
- name: Ensure Supervisor is running and enabled.
|
|
|
|
become: true
|
|
|
|
service:
|
|
|
|
name: supervisor
|
|
|
|
state: started
|
|
|
|
enabled: true
|
2018-11-18 19:00:57 +01:00
|
|
|
|
|
|
|
- name: Ensure the XPPL group is running.
|
|
|
|
become: true
|
|
|
|
supervisorctl:
|
|
|
|
name: 'xppl:'
|
|
|
|
state: started
|