[TIDY] Move to ansible_facts dict instead of injected variables
This commit is contained in:
parent
d1c6d34a64
commit
1c734cefb1
15 changed files with 39 additions and 39 deletions
|
|
@ -35,14 +35,14 @@
|
|||
when: ansible_facts['lsb']['id'] != "Raspbian"
|
||||
become: true
|
||||
ansible.builtin.apt_repository:
|
||||
repo: "deb [arch={{ dpkg_arch.stdout }}] https://download.docker.com/linux/debian {{ ansible_distribution_release }} stable"
|
||||
repo: "deb [arch={{ dpkg_arch.stdout }}] https://download.docker.com/linux/debian {{ ansible_facts['distribution_release'] }} stable"
|
||||
state: present
|
||||
notify: Update Apt Cache
|
||||
- name: Docker - Add docker CE repo (Raspbian)
|
||||
when: ansible_facts['lsb']['id'] == "Raspbian"
|
||||
become: true
|
||||
ansible.builtin.apt_repository:
|
||||
repo: "deb [arch={{ dpkg_arch.stdout }}] https://download.docker.com/linux/raspbian {{ ansible_distribution_release }} stable"
|
||||
repo: "deb [arch={{ dpkg_arch.stdout }}] https://download.docker.com/linux/raspbian {{ ansible_facts['distribution_release'] }} stable"
|
||||
state: present
|
||||
notify: Update Apt Cache
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue