Selaa lähdekoodia

check if target distro is Raspbian and install docker accordingly

pull/386/head
Horvath Gergely 6 vuotta sitten
vanhempi
commit
6232a81caf
2 muutettua tiedostoa jossa 1 lisäystä ja 4 poistoa
  1. +0
    -3
      roles/matrix-base/defaults/main.yml
  2. +1
    -1
      roles/matrix-base/tasks/server_base/setup.yml

+ 0
- 3
roles/matrix-base/defaults/main.yml Näytä tiedosto

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

+ 1
- 1
roles/matrix-base/tasks/server_base/setup.yml Näytä tiedosto

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


Ladataan…
Peruuta
Tallenna