From d332a254ee59aba47f430a257c559c1f9437cb08 Mon Sep 17 00:00:00 2001 From: yelhouti Date: Thu, 17 Oct 2019 14:04:38 +0200 Subject: [PATCH] install python3 instead of python2 for fedora >= 30 fixes 5056, fixes 4802 (#5111) --- .../preinstall/tasks/0070-system-packages.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/roles/kubernetes/preinstall/tasks/0070-system-packages.yml b/roles/kubernetes/preinstall/tasks/0070-system-packages.yml index b3b34b5e6..2d8cb654b 100644 --- a/roles/kubernetes/preinstall/tasks/0070-system-packages.yml +++ b/roles/kubernetes/preinstall/tasks/0070-system-packages.yml @@ -26,6 +26,21 @@ when: - ansible_distribution == "Fedora" - ansible_distribution_major_version|int > 21 + - ansible_distribution_major_version|int <= 29 + - not is_atomic + changed_when: False + tags: + - bootstrap-os + +- name: Install python3-dnf for latest RedHat versions + command: dnf install -y python3-dnf + register: dnf_task_result + until: dnf_task_result is succeeded + retries: 4 + delay: "{{ retry_stagger | random + 3 }}" + when: + - ansible_distribution == "Fedora" + - ansible_distribution_major_version|int >= 30 - not is_atomic changed_when: False tags: