diff --git a/roles/kubernetes/preinstall/tasks/0070-system-packages.yml b/roles/kubernetes/preinstall/tasks/0070-system-packages.yml index b7b4cf1b2..62d56cebc 100644 --- a/roles/kubernetes/preinstall/tasks/0070-system-packages.yml +++ b/roles/kubernetes/preinstall/tasks/0070-system-packages.yml @@ -17,6 +17,14 @@ tags: - bootstrap-os +- name: Remove legacy docker repo file + file: + path: "{{ yum_repo_dir }}/docker.repo" + state: absent + when: + - ansible_distribution in ["CentOS","RedHat","OracleLinux"] + - not is_atomic + - name: Install python-dnf for latest RedHat versions command: dnf install -y python-dnf yum register: dnf_task_result