mirror of
https://github.com/ansible-collections/community.docker.git
synced 2025-12-16 11:58:43 +00:00
* Try to fix tests on Ubuntu 22.04.
* Let Ansible handle the apt repo install.
(cherry picked from commit f6d4cad46e)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
53db30f21b
commit
ff242fab8e
@ -14,7 +14,9 @@
|
||||
shell: curl -fsSL https://download.docker.com/linux/{{ ansible_distribution | lower }}/gpg >key && apt-key add key
|
||||
|
||||
- name: Add Docker repo
|
||||
shell: add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} stable"
|
||||
apt_repository:
|
||||
repo: deb [arch=amd64] https://download.docker.com/linux/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} stable
|
||||
state: present
|
||||
|
||||
- block:
|
||||
- name: Prevent service restart
|
||||
|
||||
@ -0,0 +1,4 @@
|
||||
---
|
||||
docker_prereq_packages:
|
||||
- ca-certificates
|
||||
- curl
|
||||
Loading…
Reference in New Issue
Block a user