mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 11:42:08 +00:00
Clarified OS's in sugarizer/tasks/main.yml
This commit is contained in:
parent
2a1b18d8ad
commit
3d7c936c35
1 changed files with 8 additions and 8 deletions
|
@ -12,16 +12,16 @@
|
|||
src={{ sugarizer_location }}/{{ sugarizer_version }}
|
||||
state=link
|
||||
|
||||
- name: Set up apt sources on is_debuntu
|
||||
- name: Set up apt sources (debuntu)
|
||||
shell: curl -sL https://deb.nodesource.com/setup_6.x | bash -
|
||||
when: internet_available and is_debuntu
|
||||
|
||||
- name: Install nodejs=6.* which includes /usr/bin/npm - is_debuntu
|
||||
- name: Install nodejs=6.* which includes /usr/bin/npm (debuntu)
|
||||
package: name=nodejs=6.*
|
||||
state=present
|
||||
when: internet_available and is_debuntu
|
||||
|
||||
- name: Install npm non is_debuntu
|
||||
- name: Install npm (OS's other than debuntu)
|
||||
package: name={{ item }}
|
||||
state=present
|
||||
when: internet_available and not is_debuntu
|
||||
|
@ -55,20 +55,20 @@
|
|||
# dest=/etc/apache2/sites-enabled/sugarizer.conf
|
||||
# state=link
|
||||
|
||||
- name: Create the express framework for node.js - ALL less F18
|
||||
- name: Create the express framework for node.js (OS's other than Fedora 18)
|
||||
shell: npm install
|
||||
args:
|
||||
chdir: "{{ sugarizer_location }}/sugarizer/server"
|
||||
creates: "{{ sugarizer_location }}/sugarizer/server/node_modules"
|
||||
when: not is_F18 and not npm_exists
|
||||
|
||||
- name: Create the express framework for node.js - F18
|
||||
- name: Create the express framework for node.js (Fedora 18)
|
||||
shell: npm install
|
||||
args:
|
||||
chdir: "{{ sugarizer_location }}/sugarizer/server"
|
||||
when: is_F18 and not npm_exists
|
||||
|
||||
- name: Enable services - All
|
||||
- name: Enable services (all OS's)
|
||||
service: name={{ item.name }}
|
||||
enabled=yes
|
||||
state=restarted
|
||||
|
@ -76,7 +76,7 @@
|
|||
- { name: sugarizer }
|
||||
when: sugarizer_enabled
|
||||
|
||||
- name: Disable services - All
|
||||
- name: Disable services (all OS's)
|
||||
service: name={{ item.name }}
|
||||
enabled=no
|
||||
state=stopped
|
||||
|
@ -84,7 +84,7 @@
|
|||
- { name: sugarizer }
|
||||
when: not sugarizer_enabled
|
||||
|
||||
- name: Add Sugarizer to service list
|
||||
- name: Add 'sugarizer' to service list
|
||||
ini_file: dest='{{ service_filelist }}'
|
||||
section=sugarizer
|
||||
option='{{ item.option }}'
|
||||
|
|
Loading…
Reference in a new issue