new repo key handling
Some checks failed
/ checkout (push) Failing after 1m45s

This commit is contained in:
stelb 2025-03-19 19:46:19 +01:00
parent a0d3d849ca
commit c10c8fe86e

View file

@ -14,11 +14,17 @@
- name: Add Docker GPG apt Key
apt_key:
url: https://download.docker.com/linux/ubuntu/gpg
state: present
state: absent
- name: Add Docker GPG apt Key (new)
ansible.builtin.get_url:
# Docker Release (CE deb) <docker@docker.com>
url: "https://keyserver.ubuntu.com?op=get&search=9dc858229fc7dd38854ae2d88d81803c0ebfcd88"
dest: /etc/apt/keyrings/docker_rel_ce_deb.asc
- name: Add Docker Repository
apt_repository:
repo: "deb https://download.docker.com/linux/ubuntu {{ ansible_distribution_release }} stable"
repo: "deb [arch=amd64 signed-by=/etc/apt/keyrings/docker_rel_ce_deb.asc] https://download.docker.com/linux/ubuntu {{ ansible_distribution_release }} stable"
state: present
- name: Update apt and install docker-ce