tasks: Set systemd installation prefix
The systemd installation prefix is distro specific so add a new systemd_utils_prefix variable in the distro files instead of using a hardcoded value. Change-Id: Idccb404696e1cf3b8d56f62782dc8afa86996517
This commit is contained in:
parent
f120d54806
commit
cd67263120
@ -63,8 +63,8 @@
|
|||||||
# the following ML post resolves the bug.
|
# the following ML post resolves the bug.
|
||||||
# * https://lists.freedesktop.org/archives/systemd-devel/2015-March/029151.html
|
# * https://lists.freedesktop.org/archives/systemd-devel/2015-March/029151.html
|
||||||
- name: Move machined service into place
|
- name: Move machined service into place
|
||||||
copy:
|
template:
|
||||||
src: systemd-machined.service
|
src: systemd-machined.service.j2
|
||||||
dest: /etc/systemd/system/systemd-machined.service
|
dest: /etc/systemd/system/systemd-machined.service
|
||||||
register: machined_unit
|
register: machined_unit
|
||||||
when:
|
when:
|
||||||
|
@ -13,7 +13,7 @@ Wants=machine.slice
|
|||||||
After=machine.slice
|
After=machine.slice
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/lib/systemd/systemd-machined
|
ExecStart={{ systemd_utils_prefix }}/systemd-machined
|
||||||
BusName=org.freedesktop.machine1
|
BusName=org.freedesktop.machine1
|
||||||
CapabilityBoundingSet=CAP_KILL CAP_SYS_PTRACE CAP_SYS_ADMIN CAP_SETGID CAP_SYS_CHROOT CAP_DAC_READ_SEARCH CAP_DAC_OVERRIDE CAP_CHOWN CAP_FOWNER CAP_FSETID
|
CapabilityBoundingSet=CAP_KILL CAP_SYS_PTRACE CAP_SYS_ADMIN CAP_SETGID CAP_SYS_CHROOT CAP_DAC_READ_SEARCH CAP_DAC_OVERRIDE CAP_CHOWN CAP_FOWNER CAP_FSETID
|
||||||
WatchdogSec=3min
|
WatchdogSec=3min
|
@ -14,6 +14,7 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
system_config_dir: "/etc/sysconfig"
|
system_config_dir: "/etc/sysconfig"
|
||||||
|
systemd_utils_prefix: "/lib/systemd"
|
||||||
|
|
||||||
# Required rpm packages.
|
# Required rpm packages.
|
||||||
lxc_hosts_distro_packages:
|
lxc_hosts_distro_packages:
|
||||||
|
@ -43,6 +43,7 @@ lxc_hosts_distro_packages:
|
|||||||
lxc_xz_bin: pxz
|
lxc_xz_bin: pxz
|
||||||
|
|
||||||
system_config_dir: "/etc/default"
|
system_config_dir: "/etc/default"
|
||||||
|
systemd_utils_prefix: "/lib/systemd"
|
||||||
lxc_cache_map:
|
lxc_cache_map:
|
||||||
distro: ubuntu
|
distro: ubuntu
|
||||||
arch: "{{ lxc_architecture_mapping.get( ansible_architecture ) }}"
|
arch: "{{ lxc_architecture_mapping.get( ansible_architecture ) }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user