check if target distro is Raspbian and install docker accordingly

This commit is contained in:
Horvath Gergely 2020-03-08 19:04:41 +01:00
parent a5d94eec0b
commit 6232a81caf
2 changed files with 1 additions and 4 deletions

View File

@ -66,6 +66,3 @@ run_setup: true
run_self_check: true run_self_check: true
run_start: true run_start: true
run_stop: true run_stop: true
# Raspberry pi depoly TODO: it should be identified based on the operating system
matrix_raspberry_pi_deploy: false

View File

@ -7,7 +7,7 @@
when: (ansible_os_family == 'Debian') and (ansible_lsb.id != 'Raspbian') when: (ansible_os_family == 'Debian') and (ansible_lsb.id != 'Raspbian')
- include_tasks: "{{ role_path }}/tasks/server_base/setup_raspbian.yml" - include_tasks: "{{ role_path }}/tasks/server_base/setup_raspbian.yml"
when: "matrix_raspberry_pi_deploy" when: (ansible_os_family == 'Debian') and (ansible_lsb.id == 'Raspbian')
- name: Ensure Docker is started and autoruns - name: Ensure Docker is started and autoruns
service: service: