[validate-container-engine] add facts tag to tasks needed for vagrant jobs (#8678)

This commit is contained in:
Cristian Calin 2022-04-04 10:32:11 +03:00 committed by GitHub
parent 018611f829
commit cc9c376d0f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,18 +6,26 @@
get_checksum: no get_checksum: no
get_mime: no get_mime: no
register: ostree register: ostree
tags:
- facts
- name: validate-container-engine | set is_ostree - name: validate-container-engine | set is_ostree
set_fact: set_fact:
is_ostree: "{{ ostree.stat.exists }}" is_ostree: "{{ ostree.stat.exists }}"
tags:
- facts
- name: Ensure kubelet systemd unit exists - name: Ensure kubelet systemd unit exists
stat: stat:
path: "/etc/systemd/system/kubelet.service" path: "/etc/systemd/system/kubelet.service"
register: kubelet_systemd_unit_exists register: kubelet_systemd_unit_exists
tags:
- facts
- name: Populate service facts - name: Populate service facts
service_facts: service_facts:
tags:
- facts
- name: Check if containerd is installed - name: Check if containerd is installed
find: find:
@ -31,6 +39,8 @@
- /etc/systemd - /etc/systemd
- /run/systemd - /run/systemd
register: containerd_installed register: containerd_installed
tags:
- facts
- name: Check if docker is installed - name: Check if docker is installed
find: find:
@ -44,6 +54,8 @@
- /etc/systemd - /etc/systemd
- /run/systemd - /run/systemd
register: docker_installed register: docker_installed
tags:
- facts
- name: Check if crio is installed - name: Check if crio is installed
find: find:
@ -57,6 +69,8 @@
- /etc/systemd - /etc/systemd
- /run/systemd - /run/systemd
register: crio_installed register: crio_installed
tags:
- facts
- name: Uninstall containerd - name: Uninstall containerd
block: block: