From 4c4ec997ff50631fb83d6772b3e349bd9bf784b3 Mon Sep 17 00:00:00 2001 From: Emil Renner Berthing Date: Thu, 27 Feb 2020 17:50:43 +0100 Subject: debian: streamline use of apt_release variable ..and ansible_distribution_release fact. --- roles/debian/defaults/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'roles/debian/defaults') diff --git a/roles/debian/defaults/main.yml b/roles/debian/defaults/main.yml index a0708c2..9a548e3 100644 --- a/roles/debian/defaults/main.yml +++ b/roles/debian/defaults/main.yml @@ -34,16 +34,16 @@ apt_preferences_role: {} apt_repos_default: base: uri: 'https://deb.debian.org/debian' - suite: '{{ apt_release is defined|ternary(apt_release,ansible_distribution_release) }}' + suite: '{{ apt_release|default(ansible_distribution_release) }}' security: uri: 'https://deb.debian.org/debian-security' - suite: '{{ apt_release is defined|ternary(apt_release,ansible_distribution_release) }}/updates' + suite: '{{ apt_release|default(ansible_distribution_release) }}/updates' updates: uri: 'https://deb.debian.org/debian' - suite: '{{ apt_release is defined|ternary(apt_release,ansible_distribution_release) }}-updates' + suite: '{{ apt_release|default(ansible_distribution_release) }}-updates' backports: uri: 'https://deb.debian.org/debian' - suite: '{{ apt_release is defined|ternary(apt_release,ansible_distribution_release) }}-backports' + suite: '{{ apt_release|default(ansible_distribution_release) }}-backports' apt_repos_role: {} apt_sources_default: {} -- cgit v1.2.1