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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user