Ansible role for setting up nodejs.
Go to file
Dorian 9140776ea2 Add notes on including local globally installed packages. 2016-03-15 10:13:41 -04:00
defaults Get working setup for local development setup. 2016-03-15 10:10:17 -04:00
handlers Initiial creation of the Ansible NodeJS role. 2016-03-15 08:32:38 -04:00
meta Initiial creation of the Ansible NodeJS role. 2016-03-15 08:32:38 -04:00
tasks Get working setup for local development setup. 2016-03-15 10:10:17 -04:00
templates Get working setup for local development setup. 2016-03-15 10:10:17 -04:00
tests Initiial creation of the Ansible NodeJS role. 2016-03-15 08:32:38 -04:00
vars Get working setup for local development setup. 2016-03-15 10:10:17 -04:00
.travis.yml Initiial creation of the Ansible NodeJS role. 2016-03-15 08:32:38 -04:00
README.md Add notes on including local globally installed packages. 2016-03-15 10:13:41 -04:00

README.md

Local Setup

Create a local playbook local_playbook.yml:

---
- hosts: localhost
  user: $MY_USER_NAME
  roles:
    - { role: ansible-nodejs, node_version_family: "4.x", local_development: { user: "$MY_USER_NAME", enabled: true  },
        globally_installed_tools: ["browserify", "coffeescript", "less"]
     }

Create local inventory localhost_inventory:

localhost ansible_connection=local ansible_become=true

Run the playbook locally:

ansible-playbook test_playbook.yml -i localhost_inventory -vvvv -K

Role Name

A brief description of the role goes here.

Requirements

Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required.

Role Variables

A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.

Dependencies

A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles.

Example Playbook

Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:

- hosts: servers
  roles:
     - { role: username.rolename, x: 42 }

License

BSD

Author Information

An optional section for the role authors to include contact information, or a website (HTML is not allowed).