[FIX] docker: handle the ansible fact correctly

This commit is contained in:
Jannik Beyerstedt 2020-04-19 00:24:00 +02:00
parent c33c1850b0
commit 9a9c222353

View file

@ -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