mirror of
https://github.com/status-im/ansible-role-mongodb.git
synced 2025-02-17 23:46:45 +00:00
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
|
state: present
|
||||||
|
|
||||||
- name: Add systemd configuration if 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"
|
when: ansible_service_mgr == "systemd"
|
||||||
notify:
|
notify:
|
||||||
- reload systemd
|
- reload systemd
|
||||||
|
|
||||||
- name: Add symlink for 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"
|
when: ansible_service_mgr == "systemd"
|
||||||
notify:
|
notify:
|
||||||
- reload systemd
|
- reload systemd
|
||||||
|
Loading…
x
Reference in New Issue
Block a user