2017-07-06 15:22:04 +02:00
|
|
|
- name: Add repository
|
2020-01-08 23:13:49 +01:00
|
|
|
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
|
2017-07-06 15:22:04 +02:00
|
|
|
|
|
|
|
- name: Update cache
|
2017-08-05 06:12:35 +02:00
|
|
|
command: dnf makecache
|
2019-07-03 20:24:24 +02:00
|
|
|
args:
|
|
|
|
warn: no
|
2017-07-06 15:22:04 +02:00
|
|
|
|
|
|
|
- name: Install docker
|
|
|
|
dnf:
|
2019-07-03 20:24:24 +02:00
|
|
|
name: "{{ docker_packages }}"
|
2017-07-06 15:22:04 +02:00
|
|
|
state: present
|
2017-08-05 06:12:35 +02:00
|
|
|
enablerepo: docker-ce-test
|
2019-11-18 21:08:58 +01:00
|
|
|
notify: cleanup docker
|