mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-06-25 08:28:04 -02:30
Replace injected Ansible fact variables in container-engine role (#13296)
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
Description=Docker Application Container Engine
|
||||
Documentation=http://docs.docker.com
|
||||
After=network.target docker.socket containerd.service lvm2-monitor.service SuSEfirewall2.service
|
||||
{% if ansible_os_family != "Suse" %}
|
||||
{% if ansible_facts['os_family'] != "Suse" %}
|
||||
BindsTo=containerd.service
|
||||
{% endif %}
|
||||
Wants=docker.socket
|
||||
@@ -17,7 +17,7 @@ ExecReload=/bin/kill -s HUP $MAINPID
|
||||
Delegate=yes
|
||||
KillMode=process
|
||||
ExecStart={{ docker_bin_dir }}/dockerd \
|
||||
{% if ansible_os_family == "Suse" %}
|
||||
{% if ansible_facts['os_family'] == "Suse" %}
|
||||
--add-runtime oci=/usr/sbin/docker-runc \
|
||||
{% endif %}
|
||||
$DOCKER_OPTS \
|
||||
|
||||
Reference in New Issue
Block a user