Skip to content

Commit

Permalink
Updated with some ammendments to readme and comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfeidau committed Nov 3, 2015
1 parent 2d469c0 commit c60b5d5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,19 @@ Install the playbook via Ansible Galaxy:
$ ansible-galaxy install nodesource.node
```

Or using the `requirements.yml`

```yaml
# install the role from galaxy
- src: nodesource.node
```
Which is imported as follows.
```
ansible-galaxy install -r requirements.yml
```

Then configure it as follows:

```yaml
Expand All @@ -25,7 +38,7 @@ Then configure it as follows:
## Role Variables
- `nodejs_version`: Supports 0.10 or 0.12 or 4.x
- `nodejs_version`: Supports 0.10 or 0.12 or 4.x or 5.x
- `nodejs_nodesource_pin_priority`: Pin-Priority of the NodeSource repository (default: `500`).

## Testing
Expand Down
4 changes: 2 additions & 2 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
# Pin-Priority of NodeSource repository
nodejs_nodesource_pin_priority: 500

# 0.10 or 0.12 or 4.x
nodejs_version: "4.2"
# 0.10 or 0.12 or 4.x or 5.x
nodejs_version: "5.0"
3 changes: 0 additions & 3 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@
set_fact: debian_repo_version="5.x"
when: "{{ nodejs_version | version_compare('5.0', '>=') }}"

- name: Show fact
debug: msg="debian_repo_version = {{ debian_repo_version }}"

- name: Add NodeSource deb repository
apt_repository:
repo: 'deb https://deb.nodesource.com/node_{{ debian_repo_version }} {{ ansible_distribution_release }} main'
Expand Down

0 comments on commit c60b5d5

Please sign in to comment.