ANSIBLE.SUPERVISORCTL(3)

NAME
supervisorctl - Manage the state of a program or group of programs running via Supervisord

DESCRIPTION

Manage the state of a program or group of programs running via Supervisord

OPTIONS

config
    configuration file path, passed as -c to supervisorctl(Added in Ansible version 1.3.)

name
    The name of the supervisord program/process to manage(required)

password
    password to use for authentication with server, passed as -p to supervisorctl(Added in Ansible version 1.3.)

server_url
    URL on which supervisord server is listening, passed as -s to supervisorctl(Added in Ansible version 1.3.)

state
    The state of service Choices: present,started,stopped,restarted.(required)

username
    username to use for authentication with server, passed as -u to supervisorctl(Added in Ansible version 1.3.)
    # Manage the state of program to be in 'started' state.
    - supervisorctl: name=my_app 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

AUTHOR
Matt Wright

SEE ALSO
ansible(1), http://ansible.github.com/modules.html#supervisorctl