ansible-role-docker/tasks/setup-debian.yml

16 lines
518 B
YAML
Raw Normal View History

2024-10-16 19:37:26 +00:00
--
2024-10-16 20:09:20 +00:00
- name: Update all packages to their latest version.
2024-10-16 19:37:26 +00:00
ansible.builtin.apt:
name: "*"
state: latest
2024-10-16 20:09:20 +00:00
- name: Add the Apt signing key.
ansible.builtin.get_url:
url: https://download.docker.com/linux/debian/gpg
dest: /etc/apt/keyrings/docker.asc
- name: Add docker-ce repo
ansible.builtin.apt_repository:
repo: "deb [arch={{ ansible_architecture }} signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian {{ ansible_distribution_release }} stable"
state: present