From 962d6f8fef0784fe982517d5d5c8aa5d275f878d Mon Sep 17 00:00:00 2001 From: Emil Renner Berthing Date: Fri, 23 Nov 2018 16:46:17 +0100 Subject: debian: apt: support Debian release override --- roles/debian/defaults/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/debian/defaults/main.yml b/roles/debian/defaults/main.yml index 39d9cec..cb79ddc 100644 --- a/roles/debian/defaults/main.yml +++ b/roles/debian/defaults/main.yml @@ -21,16 +21,16 @@ apt_preferences: {} apt_repos: base: uri: 'https://deb.debian.org/debian' - suite: '{{ ansible_distribution_release }}' + suite: '{{ apt_release is defined|ternary(apt_release,ansible_distribution_release) }}' security: uri: 'https://deb.debian.org/debian-security' - suite: '{{ ansible_distribution_release }}/updates' + suite: '{{ apt_release is defined|ternary(apt_release,ansible_distribution_release) }}/updates' updates: uri: 'https://deb.debian.org/debian' - suite: '{{ ansible_distribution_release }}-updates' + suite: '{{ apt_release is defined|ternary(apt_release,ansible_distribution_release) }}-updates' backports: uri: 'https://deb.debian.org/debian' - suite: '{{ ansible_distribution_release }}-backports' + suite: '{{ apt_release is defined|ternary(apt_release,ansible_distribution_release) }}-backports' apt_packages: 'netbase': present -- cgit v1.2.1