basserselim.upstart
Role Name
A simple Role to create an Upstart service.
Requirements
Role Variables
upstart_name
: The name of the service.upstart_description
: A description of the service.upstart_chdir
: The directory where the command will run.upstart_command
: The command used to start the service.upstart_user
: The user under which the service will run.upstart_group
: The group under which the service will run.upstart_env
: A list of environment variables to set.upstart_log_directory
: The directory for log files.upstart_log_filename
: The name of the log file.upstart_pidfile_directory
: The directory for the PID file.upstart_pidfile_filename
: The name of the PID file.
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
Installa
ansible-galaxy install basserselim.upstart
Licenza
Unknown
Download
104
Proprietario