[TIDY] move when statements, fix whitespace
Having the when condition of a task at the top instead of bottom is easiert to read. Also some spaces were another whitespace character on accident.
This commit is contained in:
parent
1de4e4ef24
commit
a0ac0a67a7
13 changed files with 54 additions and 60 deletions
|
|
@ -29,17 +29,17 @@
|
|||
|
||||
# IMPORTANT: raspbian needs deb [arch=armhf] https://download.docker.com/linux/raspbian ...
|
||||
- name: docker - Add docker CE repo (Debian)
|
||||
when: ansible_facts['lsb']['id'] != "Raspbian"
|
||||
become: yes
|
||||
ansible.builtin.apt_repository:
|
||||
repo: "deb [arch={{ dpkg_arch.stdout }}] https://download.docker.com/linux/debian {{ ansible_distribution_release }} stable"
|
||||
state: present
|
||||
when: ansible_facts['lsb']['id'] != "Raspbian"
|
||||
- name: docker - Add docker CE repo (Raspbian)
|
||||
when: ansible_facts['lsb']['id'] == "Raspbian"
|
||||
become: yes
|
||||
ansible.builtin.apt_repository:
|
||||
repo: "deb [arch={{ dpkg_arch.stdout }}] https://download.docker.com/linux/raspbian {{ ansible_distribution_release }} stable"
|
||||
state: present
|
||||
when: ansible_facts['lsb']['id'] == "Raspbian"
|
||||
|
||||
- name: docker - Install docker CE
|
||||
become: yes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue