Sfoglia il codice sorgente

Use Debian Buster Docker repo on Debian Bullseye

Future maintainer: check on https://docs.docker.com/engine/install/debian/ if Docker for
Debian 11 is released, then undo this commit
pull/841/head
Peetz0r 5 anni fa
parent
commit
473936065d
1 ha cambiato i file con 8 aggiunte e 1 eliminazioni
  1. +8
    -1
      roles/matrix-base/tasks/server_base/setup_debian.yml

+ 8
- 1
roles/matrix-base/tasks/server_base/setup_debian.yml Vedi File

@@ -23,7 +23,14 @@
repo: "deb [arch={{ matrix_debian_arch }}] https://download.docker.com/linux/{{ ansible_distribution|lower }} {{ ansible_distribution_release }} stable"
state: present
update_cache: yes
when: matrix_docker_installation_enabled|bool and matrix_docker_package_name == 'docker-ce'
when: matrix_docker_installation_enabled|bool and matrix_docker_package_name == 'docker-ce and not ansible_distribution_release == 'bullseye'

- name: Ensure Docker repository is enabled (using Debian Buster on Debian Bullseye, for which there is no Docker yet)
apt_repository:
repo: "deb [arch={{ matrix_debian_arch }}] https://download.docker.com/linux/{{ ansible_distribution|lower }} buster stable"
state: present
update_cache: yes
when: matrix_docker_installation_enabled|bool and matrix_docker_package_name == 'docker-ce and ansible_distribution_release == 'bullseye'

- name: Ensure APT packages are installed
apt:


Caricamento…
Annulla
Salva