mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
'when: X' -> 'when: X | bool' for Ansibl 2.8
This commit is contained in:
parent
176abdd2f5
commit
3a1ccf3638
89 changed files with 248 additions and 248 deletions
|
@ -90,7 +90,7 @@
|
|||
group:
|
||||
name: mongodb
|
||||
state: present
|
||||
when: is_rpi
|
||||
when: is_rpi | bool
|
||||
|
||||
- name: Create Linux user mongodb (rpi)
|
||||
user:
|
||||
|
@ -99,7 +99,7 @@
|
|||
groups: mongodb
|
||||
home: /var/lib/mongodb
|
||||
shell: /usr/sbin/nologin
|
||||
when: is_rpi
|
||||
when: is_rpi | bool
|
||||
|
||||
|
||||
# 2. CONFIGURE FOR IIAB
|
||||
|
@ -137,7 +137,7 @@
|
|||
daemon_reload: yes
|
||||
enabled: yes
|
||||
state: restarted
|
||||
when: mongodb_enabled
|
||||
when: mongodb_enabled | bool
|
||||
|
||||
- name: Disable 'mongodb' service, if not mongodb_enabled
|
||||
systemd:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue