File tree Expand file tree Collapse file tree 3 files changed +16
-6
lines changed Expand file tree Collapse file tree 3 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,19 @@ Install the playbook via Ansible Galaxy:
15
15
$ ansible-galaxy install nodesource.node
16
16
```
17
17
18
+ Or using the ` requirements.yml `
19
+
20
+ ``` yaml
21
+ # install the role from galaxy
22
+ - src : nodesource.node
23
+ ` ` `
24
+
25
+ Which is imported as follows.
26
+
27
+ ` ` `
28
+ ansible-galaxy install -r requirements.yml
29
+ ```
30
+
18
31
Then configure it as follows:
19
32
20
33
``` yaml
@@ -25,7 +38,7 @@ Then configure it as follows:
25
38
26
39
## Role Variables
27
40
28
- - ` nodejs_version`: Supports 0.10 or 0.12 or 4.x
41
+ - ` nodejs_version`: Supports 0.10 or 0.12 or 4.x or 5.x
29
42
- `nodejs_nodesource_pin_priority` : Pin-Priority of the NodeSource repository (default: `500`).
30
43
31
44
# # Testing
Original file line number Diff line number Diff line change 2
2
# Pin-Priority of NodeSource repository
3
3
nodejs_nodesource_pin_priority : 500
4
4
5
- # 0.10 or 0.12 or 4.x
6
- nodejs_version : " 4.2 "
5
+ # 0.10 or 0.12 or 4.x or 5.x
6
+ nodejs_version : " 5.0 "
Original file line number Diff line number Diff line change 24
24
set_fact : debian_repo_version="5.x"
25
25
when : " {{ nodejs_version | version_compare('5.0', '>=') }}"
26
26
27
- - name : Show fact
28
- debug : msg="debian_repo_version = {{ debian_repo_version }}"
29
-
30
27
- name : Add NodeSource deb repository
31
28
apt_repository :
32
29
repo : ' deb https://deb.nodesource.com/node_{{ debian_repo_version }} {{ ansible_distribution_release }} main'
You can’t perform that action at this time.
0 commit comments