From 95fd1ef5d1f14eb5e74eb714c7dbc7069c8b84f0 Mon Sep 17 00:00:00 2001 From: andrei noga Date: Fri, 21 Aug 2020 11:04:07 +0200 Subject: [PATCH 1/2] containerd install fix --- tasks/setup-RedHat.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/tasks/setup-RedHat.yml b/tasks/setup-RedHat.yml index 72577f6..a9247f7 100644 --- a/tasks/setup-RedHat.yml +++ b/tasks/setup-RedHat.yml @@ -36,8 +36,18 @@ value: '{{ docker_yum_repo_enable_test }}' mode: 0644 -- name: Install containerd separately (CentOS 8). - package: - name: https://download.docker.com/linux/centos/7/x86_64/stable/Packages/containerd.io-1.2.13-3.2.el7.x86_64.rpm - state: present +- name: centos 8 - containerd and dependencies + block: + - name: install container-selinux + package: + name: container-selinux + state: present + + - name: disable container-tools + command: dnf -y module disable container-tools + + - name: install containerd + package: + name: containerd.io + state: present when: ansible_distribution_major_version | int == 8 From e1a0358b6cecf591d453ffbd7e9a714234c79e77 Mon Sep 17 00:00:00 2001 From: andrei noga Date: Fri, 21 Aug 2020 11:32:45 +0200 Subject: [PATCH 2/2] no more changed state for a task --- tasks/setup-RedHat.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/setup-RedHat.yml b/tasks/setup-RedHat.yml index a9247f7..a5e5e2d 100644 --- a/tasks/setup-RedHat.yml +++ b/tasks/setup-RedHat.yml @@ -45,6 +45,7 @@ - name: disable container-tools command: dnf -y module disable container-tools + changed_when: false - name: install containerd package: