mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
517 B
YAML
22 lines
517 B
YAML
5 years ago
|
- 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
|