mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-01 22:13:21 -07:00
(cherry picked from commit cf450e3a43
)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
90ed2fa5c3
commit
2ce326ca5b
4 changed files with 22 additions and 11 deletions
|
@ -1,4 +1,9 @@
|
|||
---
|
||||
- name: Import GPG key
|
||||
rpm_key:
|
||||
key: https://download.docker.com/linux/fedora/gpg
|
||||
state: present
|
||||
|
||||
- name: Add repository
|
||||
yum_repository:
|
||||
file: docker-ce
|
||||
|
@ -7,7 +12,6 @@
|
|||
baseurl: https://download.docker.com/linux/fedora/{{ 31 if ansible_facts.distribution_major_version|int > 31 else '$releasever' }}/$basearch/stable
|
||||
enabled: yes
|
||||
gpgcheck: yes
|
||||
gpgkey: https://download.docker.com/linux/fedora/gpg
|
||||
|
||||
- name: Update cache
|
||||
command: dnf makecache
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue