parameterize repo

This commit is contained in:
Pim Kunis 2023-05-13 10:47:30 +02:00
parent 589022b2b6
commit f2e076f96f
2 changed files with 2 additions and 1 deletions

View file

@ -1 +1,2 @@
docker_daemon_config: {} docker_daemon_config: {}
docker_repository: debian

View file

@ -12,7 +12,7 @@
keyring: /etc/apt/keyrings/docker.gpg keyring: /etc/apt/keyrings/docker.gpg
- name: Add repository - name: Add repository
apt_repository: apt_repository:
repo: "deb [signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian {{ ansible_distribution_release }} stable" repo: "deb [signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/{{ docker_repository }} {{ ansible_distribution_release }} stable"
- name: Install Docker - name: Install Docker
apt: apt:
pkg: pkg: