mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 19:52:06 +00:00
13 lines
312 B
YAML
13 lines
312 B
YAML
- name: Enable & (Re)Start 'mongodb.service' if mongodb_enabled
|
|
systemd:
|
|
name: mongodb
|
|
enabled: yes
|
|
state: restarted
|
|
when: mongodb_enabled
|
|
|
|
- name: Disable & Stop 'mongodb.service' if not mongodb_enabled
|
|
systemd:
|
|
name: mongodb
|
|
enabled: no
|
|
state: stopped
|
|
when: not mongodb_enabled
|