Provision a virtual machine with node applications managed by PM2 using Ansible.
MIT License
None.
To cleanly install PM2, use pm2_clean_install
.
pm2_clean_install: true
Configure each node application as an array item in node_apps
.
This unique configuration is required by you, otherwise this role will not install any services into the PM2 daemon.
node_apps:
- name: myApp
port: 3000
location: /opt/myapp
start: app.js
init: reset.js
repository: ssh://[email protected]/mybitbucket/myapp.git
database:
name: myapp
file: database.sql
config:
origin: config/local-example.js
destination: config/local.js
- { role: fubarhouse.pm2 }
MIT / BSD
This role was created in 2016 by Karl Hepworth.