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.
This commit is contained in:
2026-01-05 23:14:07 +01:00
parent f3b3d3cb82
commit 00762619c6

View File

@@ -1,7 +1,7 @@
---
- 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_distribution_release }} stable"
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