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:
Sergei Antipov 2019-06-14 11:25:06 -04:00 committed by GitHub
commit 196c796ef9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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