Merge pull request #169 from proact-de/missing-daemon-reload
Ensure the systemd file is created under the correct name on Debian/Ubuntu
This commit is contained in:
commit
196c796ef9
|
@ -59,13 +59,13 @@
|
|||
state: present
|
||||
|
||||
- name: Add systemd configuration if present
|
||||
copy: src=mongodb.service dest=/lib/systemd/system/mongodb.service owner=root group=root mode=0644
|
||||
copy: src=mongodb.service dest=/lib/systemd/system/{{mongodb_daemon_name}}.service owner=root group=root mode=0644
|
||||
when: ansible_service_mgr == "systemd"
|
||||
notify:
|
||||
- reload systemd
|
||||
|
||||
- name: Add symlink for systemd
|
||||
file: src=/lib/systemd/system/mongodb.service dest=/etc/systemd/system/multi-user.target.wants/mongodb.service state=link
|
||||
file: src=/lib/systemd/system/{{mongodb_daemon_name}}.service dest=/etc/systemd/system/multi-user.target.wants/{{mongodb_daemon_name}}.service state=link
|
||||
when: ansible_service_mgr == "systemd"
|
||||
notify:
|
||||
- reload systemd
|
||||
|
|
Loading…
Reference in New Issue