35 lines
680 B
YAML
35 lines
680 B
YAML
---
|
|
|
|
- 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
|
|
|
|
- name: Ensure the XPPL group is running.
|
|
become: true
|
|
supervisorctl:
|
|
name: 'xppl:'
|
|
state: started
|