1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Merge pull request #13 from iiab/master

sync from iiab/iiab
This commit is contained in:
A Holt 2017-10-17 21:50:21 -04:00 committed by GitHub
commit 5cc67612e1

View file

@ -12,20 +12,24 @@
src={{ sugarizer_location }}/{{ sugarizer_version }}
state=link
- name: Set up apt sources on is_debuntu
shell: curl -sL https://deb.nodesource.com/setup_6.x | bash -
when: internet_available and is_debuntu
- name: Install sugarizer required packages - is_debuntu
package: name={{ item }}
state=present
with_items:
- node-gyp
when: internet_available and is_debuntu
with_items:
- nodejs
- name: Install npm non is_debuntu
package: name={{ item }}
state=present
when: internet_available and not is_debuntu
with_items:
- nodejs
- npm
when: internet_available and not is_debuntu
# attempting to reinstall npn is broken on raspbian 9
- name: check for sugarizer already installed
@ -37,18 +41,6 @@
npm_exists: True
when: npm.stat.exists is defined and npm.stat.exists
- name: Set up apt sources on is_debuntu
shell: curl -sL https://deb.nodesource.com/setup_6.x | bash -
when: internet_available and is_debuntu
- name: Actually get it installed on is_debuntu
package: name={{ item }}
state=present
with_items:
- nodejs
- npm
when: internet_available and is_debuntu
- name: Create systemd files and copy our ini file
template: src={{ item.src }}
dest={{ item.dest }}