Replace hardcoded list in RedHat with docker_obsolete_packages

This commit is contained in:
Chris Schindlbeck 2025-01-24 21:33:08 +01:00
parent 1800d2e793
commit b0cc216a6b
2 changed files with 7 additions and 4 deletions

View File

@ -1,10 +1,7 @@
---
- name: Ensure old versions of Docker are not installed.
package:
name:
- docker
- docker-common
- docker-engine
name: "{{ docker_obsolete_packages }}"
state: absent
- name: Add Docker GPG key.

6
vars/Fedora.yml Executable file
View File

@ -0,0 +1,6 @@
---
docker_install_compose_plugin: false
docker_obsolete_packages:
- docker
- docker-engine
- docker-common