ansible-nodejs-role
ansible-nodejs-role copied to clipboard
io.js Ansible role
putting this note here .. we need to offer the same thing but for io.js
Would it make sense to have this playbook install one of the 3 servers based on configuration variables the playbook looks for? These variables would be used to configure internal variables to install the correct server.
Possible configuration variables that are set outside of the playbook:
- nodesource_node_0_10
- nodesource_node_0_12
- nodesource_iojs
Possible internal variables for the playbook:
- nodesource_repo - possible values for this variable are:
- https://deb.nodesource.com/node
- https://deb.nodesource.com/node_0.12
- https://deb.nodesource.com/iojs_1.x
- nodesource_package - possible values for this variable are:
- nodejs
- iojs
TBH at the moment I think it would be better to have two different roles. Just to ensure it is very clear to the ops person which "distribution" the system is using.
You might want to have a look at a similar role I created