mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-08-03 11:30:05 -02:30
Replace injected Ansible fact variables in container-engine role (#13296)
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
|
||||
- name: Cri-o | special handling for amazon linux
|
||||
import_tasks: "setup-amazon.yaml"
|
||||
when: ansible_distribution in ["Amazon"]
|
||||
when: ansible_facts['distribution'] in ["Amazon"]
|
||||
|
||||
- name: Cri-o | build a list of crio runtimes with Katacontainers runtimes
|
||||
set_fact:
|
||||
@@ -189,7 +189,7 @@
|
||||
dest: /etc/containers/mounts.conf
|
||||
mode: "0644"
|
||||
when:
|
||||
- ansible_os_family == 'RedHat'
|
||||
- ansible_facts['os_family'] == 'RedHat'
|
||||
notify: Restart crio
|
||||
|
||||
- name: Cri-o | create directory for oci hooks
|
||||
@@ -220,7 +220,9 @@
|
||||
dest: /etc/containers/storage.conf
|
||||
section: storage.options.overlay
|
||||
option: mountopt
|
||||
value: '{{ ''"nodev"'' if ansible_kernel is version(("4.18" if ansible_os_family == "RedHat" else "4.19"), "<") else ''"nodev,metacopy=on"'' }}'
|
||||
value: >-
|
||||
{{ '"nodev"' if ansible_facts['kernel'] is version(('4.18' if ansible_facts['os_family'] == 'RedHat' else '4.19'), '<')
|
||||
else '"nodev,metacopy=on"' }}
|
||||
mode: "0644"
|
||||
|
||||
- name: Cri-o | create directory registries configs
|
||||
|
||||
Reference in New Issue
Block a user