Skip to content
Snippets Groups Projects
Unverified Commit a86d9bd8 authored by Sergey's avatar Sergey Committed by GitHub
Browse files

do not remove package in validate container engine role when Fedora CoreOS distr (#8626)

parent 21b1516d
No related branches found
No related tags found
No related merge requests found
---
- name: validate-container-engine | check if fedora coreos
stat:
path: /run/ostree-booted
get_attributes: no
get_checksum: no
get_mime: no
register: ostree
- name: validate-container-engine | set is_ostree
set_fact:
is_ostree: "{{ ostree.stat.exists }}"
- name: Ensure kubelet systemd unit exists
stat:
path: "/etc/systemd/system/kubelet.service"
......@@ -64,6 +76,7 @@
tags:
- reset_containerd
when:
- not (is_ostree or (ansible_distribution == "Flatcar Container Linux by Kinvolk") or (ansible_distribution == "Flatcar"))
- container_manager != "containerd"
- docker_installed.matched == 0
- containerd_installed.matched > 0
......@@ -89,6 +102,7 @@
tags:
- reset_docker
when:
- not (is_ostree or (ansible_distribution == "Flatcar Container Linux by Kinvolk") or (ansible_distribution == "Flatcar"))
- container_manager != "docker"
- docker_installed.matched > 0
......@@ -113,5 +127,6 @@
tags:
- reset_crio
when:
- not (is_ostree or (ansible_distribution == "Flatcar Container Linux by Kinvolk") or (ansible_distribution == "Flatcar"))
- container_manager != "crio"
- crio_installed.matched > 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment