upstart
Role Name
A simple Role to create an upstart service
Requirements
Role Variables
upstart_name
: name of the serviceupstart_description
: description of the serviceupstart_chdir
: directory where the command should be executed inupstart_command
: command to startupstart_user
: user to run asupstart_group
: group to run asupstart_env
: list with environemnt variables to setupstart_log_directory
: directory of logfileupstart_log_filename
: logfileupstart_pidfile_directory
: directory for pidfileupstart_pidfile_filename
: pidfile
Example Playbook
- hosts: servers
roles:
- role: basserselim.upstart
upstart_name: node-app
upstart_description: "service for node-app"
upstart_command: "node app.js"
upstart_chdir: "/var/www/node-app"
upstart_user: www-data
upstart_group: www-data
upstart_env:
NODE_ENV: "production"
upstart_log_directory: "/var/log/node-app"
upstart_log_filename: "output.log"
upstart_pidfile_directory: "/var/run/node-app"
upstart_pidfile_filename: "node-app.pid"
License
BSD
Author Information
Install
ansible-galaxy install basserselim/ansible_role_upstart
License
Unknown
Downloads
91
Owner