spatialdev/ansible-task-pm2

Name: ansible-task-pm2

Owner: SpatialDev

Description: Ansible task for setting up PM2

Created: 2016-02-20 20:45:08.0

Updated: 2016-02-20 20:45:08.0

Pushed: 2016-04-12 22:13:05.0

Homepage: null

Size: 3

Language: null

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

ansible-task-pm2

Ansible task for setting up PM2

Include this task in your ansible playbook to install PM2 and configure start-up script.

Synopsis of sub-tasks

1) Install PM2 globally

2) Copy PM2 JSON application configuration file from Ansible Management Node to target host(s). An example of a PM2 config file is here. Optional, if pm2_config_apps: True.

Optional Variables

pm2_config_apps (Boolean) - whether to configure PM2 to manage specific apps. default
pm2_json_src_path (string) - the path to PM2 json application config file on the Ansible Managment Node
pm2_json_dest_path (string) - the path to which the PM2 json application config file should be copied to on target host
pm2_username (string) - username for that will execute PM2


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.