diff options
| author | Luke Hoersten <[email protected]> | 2018-02-22 21:08:27 -0600 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2018-02-22 21:08:27 -0600 |
| commit | dd15a217d8f3cedded37fe4db8a352013eb41559 (patch) | |
| tree | b0d7dea2266d6348e526c51f68268ca7e552133c /roles/nodejs/tasks/main.yaml | |
| parent | a5e7b1cf5f17c3127995a8a10d20f60add2a53aa (diff) | |
Removed nodejs role. Using apt now.
Diffstat (limited to 'roles/nodejs/tasks/main.yaml')
| -rw-r--r-- | roles/nodejs/tasks/main.yaml | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/roles/nodejs/tasks/main.yaml b/roles/nodejs/tasks/main.yaml deleted file mode 100644 index fca9008..0000000 --- a/roles/nodejs/tasks/main.yaml +++ /dev/null @@ -1,38 +0,0 @@ ---- - -# https://github.com/nfarina/homebridge/wiki/Running-HomeBridge-on-a-Raspberry-Pi - -- name: download and unarchive nodejs - become: yes - unarchive: - src: "https://nodejs.org/dist/v{{nodejs_version}}/{{nodejs_dir}}.tar.xz" - dest: "/opt/" - remote_src: yes - creates: "/opt/{{nodejs_dir}}" - -# sudo update-alternatives --install "/usr/bin/node" "node" "/opt/node/bin/node" 1 -- name: update node alterantives - become: yes - alternatives: - link: "/usr/bin/{{item}}" - name: "{{item}}" - path: "/opt/{{nodejs_dir}}/bin/{{item}}" - priority: "1" - with_items: - - "node" - - "npm" - -- name: npm install global deps - become: yes - npm: name="{{item}}" global="yes" - with_items: - - "npm" - - "node-gyp" - -- name: update node-gyp alterantives - become: yes - alternatives: - link: "/usr/bin/node-gyp" - name: "node-gyp" - path: "/opt/{{nodejs_dir}}/bin/node-gyp" - priority: "1" |
