[FIX] docker: handle the ansible fact correctly
This commit is contained in:
parent
c33c1850b0
commit
9a9c222353
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue