Skip to content

fansible/ansible-role-supervisor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Supervisor

An ansible role to install Supervisor and add program to supervise in a simply manner for Ubuntu (trusty).

Requirements and dependencies

None.

##Role Variables

    programs_to_supervise: []
    # Name and command are the only mandatory variable,
    # check the template for a better understanding
    # programs_to_supervise:
    # - { name: top, command: "/usr/bin/top -b" }
    # - { name: top, state: "stopped", command: "/usr/bin/top -b", directory: "/var/www/", autostart: true, autorestart: false, startretries: 5, user: "vagrant",  }

Example Playbook

    - hosts: all
      roles:
         - ubuntu-supervisor #you may have to rename the role
      vars:
        commands_to_supervise:
            - { name: myapp, command: "/usr/bin/node /var/www/myapp/server.js" }

License

MIT

Author Information

Maxime Thoonsen @maxthoon

About

A ansible role to install supervisor on ubuntu trusty servers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published