mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2026-09-08 21:27:36 +02:00
build
This commit is contained in:
@@ -86,16 +86,20 @@
|
||||
|
||||
- name: Download Docker GPG key
|
||||
shell: |
|
||||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | \
|
||||
curl -fsSL https://download.docker.com/linux/debian/gpg | \
|
||||
sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
|
||||
|
||||
- name: Add Docker repository (Ubuntu 24 safe)
|
||||
apt_repository:
|
||||
repo: "deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.gpg] \
|
||||
https://download.docker.com/linux/ubuntu noble stable"
|
||||
state: present
|
||||
filename: docker
|
||||
update_cache: no
|
||||
- name: Add Docker repository source file
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/apt/sources.list.d/docker.sources
|
||||
mode: '0644'
|
||||
content: |
|
||||
Types: deb
|
||||
URIs: https://download.docker.com/linux/debian
|
||||
Suites: {{ ansible_distribution_release }}
|
||||
Components: stable
|
||||
Architectures: {{ 'amd64' if ansible_architecture == 'x86_64' else ansible_architecture }}
|
||||
Signed-By: /etc/apt/keyrings/docker.asc
|
||||
|
||||
- name: Update apt cache
|
||||
apt:
|
||||
|
||||
Reference in New Issue
Block a user