mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2026-09-09 05:37:35 +02:00
build-all
This commit is contained in:
@@ -84,10 +84,16 @@
|
|||||||
state: directory
|
state: directory
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
|
|
||||||
- name: Download Docker GPG key
|
- name: Download Docker GPG key (ascii)
|
||||||
shell: |
|
ansible.builtin.get_url:
|
||||||
curl -fsSL https://download.docker.com/linux/debian/gpg | \
|
url: https://download.docker.com/linux/debian/gpg
|
||||||
sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
|
dest: /tmp/docker.gpg
|
||||||
|
mode: '0644'
|
||||||
|
|
||||||
|
- name: Dearmor Docker GPG key
|
||||||
|
ansible.builtin.command:
|
||||||
|
cmd: gpg --dearmor -o /etc/apt/keyrings/docker.gpg /tmp/docker.gpg
|
||||||
|
creates: /etc/apt/keyrings/docker.gpg
|
||||||
|
|
||||||
- name: Add Docker repository source file
|
- name: Add Docker repository source file
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
@@ -99,7 +105,7 @@
|
|||||||
Suites: {{ ansible_distribution_release }}
|
Suites: {{ ansible_distribution_release }}
|
||||||
Components: stable
|
Components: stable
|
||||||
Architectures: {{ 'amd64' if ansible_architecture == 'x86_64' else ansible_architecture }}
|
Architectures: {{ 'amd64' if ansible_architecture == 'x86_64' else ansible_architecture }}
|
||||||
Signed-By: /etc/apt/keyrings/docker.asc
|
Signed-By: /etc/apt/keyrings/docker.gpg
|
||||||
|
|
||||||
- name: Update apt cache
|
- name: Update apt cache
|
||||||
apt:
|
apt:
|
||||||
|
|||||||
Reference in New Issue
Block a user