From 9a9c2223538b04d3fa49c1e9bc5457443b9465a9 Mon Sep 17 00:00:00 2001 From: Jannik Beyerstedt Date: Sun, 19 Apr 2020 00:24:00 +0200 Subject: [PATCH] [FIX] docker: handle the ansible fact correctly --- tasks/docker-Debian.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/docker-Debian.yml b/tasks/docker-Debian.yml index 572b6db..84f1235 100644 --- a/tasks/docker-Debian.yml +++ b/tasks/docker-Debian.yml @@ -33,13 +33,13 @@ apt_repository: repo: "deb [arch={{ dpkg_arch.stdout }}] https://download.docker.com/linux/debian {{ ansible_distribution_release }} stable" state: present - when: ansible_lsb.id != "Raspbian" + when: ansible_facts['lsb']['id'] != "Raspbian" - name: docker - Add docker CE repo (Rasbian) become: yes apt_repository: repo: "deb [arch={{ dpkg_arch.stdout }}] https://download.docker.com/linux/raspbian {{ ansible_distribution_release }} stable" state: present - when: ansible_lsb.id == "Raspbian" + when: ansible_facts['lsb']['id'] == "Raspbian" - name: docker - Install docker CE become: yes