community / community.general / 0.1.1 / module / supervisorctl Manage the state of a program or group of programs running via supervisord Authors: Matt Wright (@mattupstate), Aaron Wang (@inetfuture) <inetfuture@gmail.com> preview | supported by communitycommunity.general.supervisorctl (0.1.1) — module
Install with ansible-galaxy collection install community.general:==0.1.1
collections: - name: community.general version: 0.1.1
Manage the state of a program or group of programs running via supervisord
# Manage the state of program to be in 'started' state. - supervisorctl: name: my_app state: started
# Manage the state of program group to be in 'started' state. - supervisorctl: name: 'my_apps:' state: started
# Restart my_app, reading supervisorctl configuration from a specified file. - supervisorctl: name: my_app state: restarted config: /var/opt/my_project/supervisord.conf
# Restart my_app, connecting to supervisord with credentials and server URL. - supervisorctl: name: my_app state: restarted username: test password: testpass server_url: http://localhost:9001
# Send a signal to my_app via supervisorctl - supervisorctl: name: my_app state: signalled signal: USR1
name: description: - The name of the supervisord program or group to manage. - The name will be taken as group name when it ends with a colon I(:) - Group support is only available in Ansible version 1.6 or later. required: true state: choices: - present - started - stopped - restarted - absent - signalled description: - The desired state of program/group. required: true config: description: - The supervisor configuration file path signal: description: - The signal to send to the program/group, when combined with the 'signalled' state. Required when l(state=signalled). password: description: - password to use for authentication username: description: - username to use for authentication server_url: description: - URL on which supervisord server is listening supervisorctl_path: description: - path to supervisorctl executable