Remove stale legacy yum docker repo /etc/yum.repos.d/docker.repo (#5569)
* Remove stale legacy yum docker repo /etc/yum.repos.d/docker.repo * move task 'Remove legacy docker repo file' to pre-upgrade.yml
This commit is contained in:
parent
54d9404c0e
commit
2798adc837
1 changed files with 8 additions and 0 deletions
|
@ -1,4 +1,12 @@
|
||||||
---
|
---
|
||||||
|
- 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: Ensure old versions of Docker are not installed. | Debian
|
- name: Ensure old versions of Docker are not installed. | Debian
|
||||||
apt:
|
apt:
|
||||||
name: '{{ docker_remove_packages_apt }}'
|
name: '{{ docker_remove_packages_apt }}'
|
||||||
|
|
Loading…
Reference in a new issue