make the deb repo autoconfigure aka use the ansible_distribution and ansible_distribution_release vars

This commit is contained in:
Micha Gläß-Stöcker 2022-09-19 20:47:25 +02:00
parent a4896cac33
commit 03a6c15cbd

View file

@ -18,7 +18,7 @@
- name: Ensure docker repository is available
apt_repository:
repo: deb https://download.docker.com/linux/debian buster stable
repo: deb https://download.docker.com/linux/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} stable
state: present
notify: Update apt cache