mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 03:32:12 +00:00
14 lines
335 B
YAML
14 lines
335 B
YAML
- name: Enable & (Re)Start 'mongodb.service' if mongodb_enabled
|
|
systemd:
|
|
name: mongodb
|
|
daemon_reload: yes
|
|
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
|