1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 03:32:12 +00:00

Update main.yml

This commit is contained in:
A Holt 2018-07-22 11:30:31 -04:00 committed by GitHub
parent 2e6fe83c9e
commit d3fed1ab2c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,7 +30,7 @@
- { src: 'mongod.conf.j2', dest: "{{ mongodb_conf }}" }
- { src: 'mongodb.service.j2', dest: '/etc/systemd/system/mongodb.service' }
- name: Restart service if enabled, with "systemctl daemon-reload" (in case mongodb.service changed?)
- name: Enable+restart systemd service if mongodb_enabled, with "systemctl daemon-reload" (in case mongodb.service changed?)
systemd:
name: mongodb
enabled: yes
@ -38,7 +38,7 @@
daemon_reload: yes
when: mongodb_enabled
- name: Stop service if not enabled
- name: Disable+stop systemd service if mongodb_enabled: False
systemd:
name: mongodb
enabled: no