ansible-infra/roles/docker/tasks/main/01_repo_setup.yaml
Stefan Bethke 664b9115b8
Some checks failed
/ Ansible Lint (push) Failing after 44s
Fix warning
2026-01-25 13:01:52 +01:00

15 lines
530 B
YAML

- name: Ensure Dockers GPG key is added
ansible.builtin.get_url:
url: https://download.docker.com/linux/debian/gpg
dest: /etc/apt/trusted.gpg.d/docker.asc
mode: "0644"
owner: root
group: root
become: true
- name: Ensure Docker APT repository is added
ansible.builtin.apt_repository:
repo: "deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/docker.asc] https://download.docker.com/linux/debian {{ ansible_facts['distribution_release'] }} stable"
filename: docker
state: present
become: true