ansible/test/integration/targets/setup_docker/tasks/Fedora.yml

22 lines
517 B
YAML
Raw Normal View History

2017-07-06 15:22:04 +02:00
- 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
2017-07-06 15:22:04 +02:00
- name: Update cache
command: dnf makecache
args:
warn: no
2017-07-06 15:22:04 +02:00
- name: Install docker
dnf:
name: "{{ docker_packages }}"
2017-07-06 15:22:04 +02:00
state: present
enablerepo: docker-ce-test
notify: cleanup docker