Varia library working group XPPL.
https://gitea.xpub.nl/XPUB/XPPL
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
680 B
34 lines
680 B
---
|
|
|
|
- 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
|
|
|