From 78fe070cd35fc3391c1846a85fb19333ad9aa056 Mon Sep 17 00:00:00 2001 From: Pierre-antoine Comby Date: Fri, 30 Oct 2020 16:59:44 +0100 Subject: [PATCH] use debian backport only with debian --- ansible/roles/1-apt-basic/tasks/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ansible/roles/1-apt-basic/tasks/main.yml b/ansible/roles/1-apt-basic/tasks/main.yml index 9c01dd97..7c57646f 100644 --- a/ansible/roles/1-apt-basic/tasks/main.yml +++ b/ansible/roles/1-apt-basic/tasks/main.yml @@ -3,11 +3,12 @@ apt_repository: repo: deb http://{{ mirror }}/debian buster-backports main state: present + when: ansible_facts['distribution'] == "Debian" - name: Install note_kfet APT dependencies apt: update_cache: true - default_release: buster-backports + default_release: "{{ 'buster-backports' if ansible_facts['distribution'] == 'Debian' }}" install_recommends: false name: # Common tools