mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
sugarizer - mongodb, nodejs rework
This commit is contained in:
parent
c86b1552a5
commit
0f77ce911b
3 changed files with 18 additions and 3 deletions
|
@ -1,3 +1,3 @@
|
|||
dependencies:
|
||||
- { role: mongodb, tags: ['generic','mongodb'], when: sugarizer_install | bool }
|
||||
- { role: nodejs, tags: ['nodejs'], when: sugarizer_install | bool }
|
||||
#dependencies:
|
||||
# - { role: mongodb, tags: ['generic','mongodb'], when: sugarizer_install | bool }
|
||||
# - { role: nodejs, tags: ['nodejs'], when: sugarizer_install | bool }
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# auto starts mongodb via the requires= line in unit file
|
||||
- name: Enable & Restart 'sugarizer' systemd service
|
||||
systemd:
|
||||
name: sugarizer
|
||||
|
@ -6,6 +7,7 @@
|
|||
state: restarted
|
||||
when: sugarizer_enabled | bool
|
||||
|
||||
# stops sugarizer but not mongodb
|
||||
- name: Disable & Stop 'sugarizer' systemd service
|
||||
systemd:
|
||||
name: sugarizer
|
||||
|
@ -13,6 +15,11 @@
|
|||
state: stopped
|
||||
when: not sugarizer_enabled
|
||||
|
||||
# stops mongodb would of been called via meta/main.yml prior
|
||||
- name: MONGODB
|
||||
include_tasks: roles/mongodb/tasks/enable.yml
|
||||
when: not sugarizer_enabled
|
||||
|
||||
# Apache
|
||||
|
||||
- name: Enable http://box/sugarizer & http://box/sugar via Apache
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
- name: MONGODB
|
||||
include_role:
|
||||
name: mongodb
|
||||
|
||||
- name: NODEJS
|
||||
include_role:
|
||||
name: nodejs
|
||||
|
||||
- name: FAIL (STOP INSTALLING) IF nodejs_version is not set to 12.x
|
||||
fail:
|
||||
msg: "Sugarizer install cannot proceed, as it currently requires Node.js 12.x, and your nodejs_version is set to {{ nodejs_version }}. Please check the value of nodejs_version in /opt/iiab/iiab/vars/default_vars.yml and possibly also /etc/iiab/local_vars.yml"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue