mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Bring back the warning with a twist
This commit is contained in:
parent
30e798675c
commit
a450997aa4
1 changed files with 10 additions and 2 deletions
|
@ -31,16 +31,24 @@
|
||||||
- debug:
|
- debug:
|
||||||
var: is_raspbian
|
var: is_raspbian
|
||||||
|
|
||||||
|
# might be able to lift this once we know using bionic would work
|
||||||
|
- name: EXIT 'mongodb' ROLE & CONTINUE, IF 'is_debian_10 and aarch64 and not is_raspbian' i.e. TRUE DEBIAN with arch64
|
||||||
|
fail: # FORCE IT RED THIS ONCE!
|
||||||
|
msg: ATTEMPTED MongoDB INSTALLATION WITH (TRUE) DEBIAN aarch64, which is not supported upstream. Nevertheless IIAB will continue (consider this a warning!)
|
||||||
|
when: (ansible_architecture == "aarch64") and is_debian_10 and not is_raspbian
|
||||||
|
ignore_errors: yes
|
||||||
|
|
||||||
|
# ELSE...
|
||||||
- name: Install MongoDB if 'mongodb_installed' not defined, e.g. in {{ iiab_state_file }} # /etc/iiab/iiab_state.yml
|
- name: Install MongoDB if 'mongodb_installed' not defined, e.g. in {{ iiab_state_file }} # /etc/iiab/iiab_state.yml
|
||||||
include_tasks: install.yml
|
include_tasks: install.yml
|
||||||
when: mongodb_installed is undefined
|
when: mongodb_installed is undefined and not (ansible_architecture == "aarch64" and is_debian_10 and not is_raspbian)
|
||||||
|
|
||||||
- name: Disable & Stop 'mongodb' service, if not mongodb_enabled
|
- name: Disable & Stop 'mongodb' service, if not mongodb_enabled
|
||||||
systemd:
|
systemd:
|
||||||
name: mongodb
|
name: mongodb
|
||||||
enabled: no
|
enabled: no
|
||||||
state: stopped
|
state: stopped
|
||||||
when: not mongodb_enabled
|
when: not mongodb_enabled and mongodb_installed is defined
|
||||||
|
|
||||||
#'mongodb' systemd service - started on demand by sugarizer
|
#'mongodb' systemd service - started on demand by sugarizer
|
||||||
# Just recording that mongodb should be running
|
# Just recording that mongodb should be running
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue