File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 59
59
state : present
60
60
61
61
- name : Add systemd configuration if present
62
- copy : src=mongodb.service dest=/lib/systemd/system/mongodb .service owner=root group=root mode=0644
62
+ copy : src=mongodb.service dest=/lib/systemd/system/{{mongodb_daemon_name}} .service owner=root group=root mode=0644
63
63
when : ansible_service_mgr == "systemd"
64
64
notify :
65
65
- reload systemd
66
66
67
67
- name : Add symlink for systemd
68
- file : src=/lib/systemd/system/mongodb .service dest=/etc/systemd/system/multi-user.target.wants/mongodb .service state=link
68
+ file : src=/lib/systemd/system/{{mongodb_daemon_name}} .service dest=/etc/systemd/system/multi-user.target.wants/{{mongodb_daemon_name}} .service state=link
69
69
when : ansible_service_mgr == "systemd"
70
70
notify :
71
71
- reload systemd
You can’t perform that action at this time.
0 commit comments