a5c36eedd8
This avoids installing dnf-plugins-core, which breaks the yum and dnf modules when uninstalling packages using a wildcard after they have already been removed. This should resolve issues with the yum integration tests failing after docker tests run.
21 lines
517 B
YAML
21 lines
517 B
YAML
- name: Add repository
|
|
yum_repository:
|
|
file: docker-ce
|
|
name: docker-ce-stable
|
|
description: Docker CE Stable - $basearch
|
|
baseurl: https://download.docker.com/linux/fedora/$releasever/$basearch/stable
|
|
enabled: yes
|
|
gpgcheck: yes
|
|
gpgkey: https://download.docker.com/linux/fedora/gpg
|
|
|
|
- name: Update cache
|
|
command: dnf makecache
|
|
args:
|
|
warn: no
|
|
|
|
- name: Install docker
|
|
dnf:
|
|
name: "{{ docker_packages }}"
|
|
state: present
|
|
enablerepo: docker-ce-test
|
|
notify: cleanup docker
|