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