Fix tests on Ubuntu 22.04 (#419)

* Try to fix tests on Ubuntu 22.04.

* Let Ansible handle the apt repo install.
This commit is contained in:
Felix Fontein 2022-07-07 22:54:14 +02:00 committed by GitHub
parent 58211153db
commit f6d4cad46e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -14,7 +14,9 @@
shell: curl -fsSL https://download.docker.com/linux/{{ ansible_distribution | lower }}/gpg >key && apt-key add key shell: curl -fsSL https://download.docker.com/linux/{{ ansible_distribution | lower }}/gpg >key && apt-key add key
- name: Add Docker repo - 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: - block:
- name: Prevent service restart - name: Prevent service restart

View File

@ -0,0 +1,4 @@
---
docker_prereq_packages:
- ca-certificates
- curl