Browse Source
remove legacy docker repo in kubernetes/preinstall before any packages installed (#5640)
pull/5220/head
Sergey
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
8 additions and
0 deletions
-
roles/kubernetes/preinstall/tasks/0070-system-packages.yml
|
@ -17,6 +17,14 @@ |
|
|
tags: |
|
|
tags: |
|
|
- bootstrap-os |
|
|
- 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 |
|
|
- name: Install python-dnf for latest RedHat versions |
|
|
command: dnf install -y python-dnf yum |
|
|
command: dnf install -y python-dnf yum |
|
|
register: dnf_task_result |
|
|
register: dnf_task_result |
|
|