tasks: Use /etc/systemd/system to install Ansible-defined systemd services
user-defined services should be placed into /etc/systemd/system instead of /lib/systemd/system according to the systemd documentation. Change-Id: Id21c5e565ce62d83ec3e65cfae365cb7d5f6b081
This commit is contained in:
parent
23df8f219b
commit
f120d54806
@ -54,7 +54,7 @@
|
||||
- name: Move machines mount into place
|
||||
copy:
|
||||
src: var-lib-machines.mount
|
||||
dest: /lib/systemd/system/var-lib-machines.mount
|
||||
dest: /etc/systemd/system/var-lib-machines.mount
|
||||
register: mount_unit
|
||||
when:
|
||||
- machines_create | changed
|
||||
@ -65,7 +65,7 @@
|
||||
- name: Move machined service into place
|
||||
copy:
|
||||
src: systemd-machined.service
|
||||
dest: /lib/systemd/system/systemd-machined.service
|
||||
dest: /etc/systemd/system/systemd-machined.service
|
||||
register: machined_unit
|
||||
when:
|
||||
- machines_create | changed
|
||||
|
Loading…
Reference in New Issue
Block a user