Skip to content

Commit 636a523

Browse files
committed
🔧 Make apt uri configurable through default variable
Allows the user to override the apt server to pull from, for example when using an apt proxy. Previous value is new default, so playbooks not using this won't see any change.
1 parent 84e585f commit 636a523

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

defaults/main.yml

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# docker_apt_key_fpr: "9DC858229FC7DD38854AE2D88D81803C0EBFCD88" # optional variable, only considered if set by user
77
docker_apt_key_url: "https://download.docker.com/linux/debian/gpg"
88
docker_apt_keyrings_dir: "/etc/apt/keyrings"
9+
docker_apt_uri: "https://download.docker.com/linux/debian"
910
docker_data_root: "/var/lib/docker"
1011
docker_storage_driver: "overlay2"
1112
docker_v6_cidr: ""

templates/docker.list.j2

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{# SPDX-FileCopyrightText: 2022 Stefan Haun <[email protected]> #}
22
{# SPDX-License-Identifier: CC0-1.0 #}
3-
deb [signed-by={{ docker_apt_keyrings_dir }}/docker.asc] https://download.docker.com/linux/debian {{ ansible_distribution_release }} stable
3+
deb [signed-by={{ docker_apt_keyrings_dir }}/docker.asc] {{ docker_apt_uri }} {{ ansible_distribution_release }} stable

0 commit comments

Comments
 (0)