Files
ansible/tasks/debian-docker/repository.yml
Bryan Joshua Pedini 00762619c6 fix(debian-docker): update ansible variable reference for distribution release
Replace deprecated `ansible_distribution_release` with `ansible_facts.distribution_release` to ensure compatibility with newer Ansible versions and prevent potential undefined variable errors.
2026-01-05 23:14:07 +01:00

10 lines
382 B
YAML

---
- name: ensure Docker repository is present
ansible.builtin.copy:
content: "deb [signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian {{ ansible_facts.distribution_release }} stable"
dest: /etc/apt/sources.list.d/docker.list
owner: root
group: root
mode: 0644
when: ansible_facts["distribution"] == "Debian"