Skip to content
Snippets Groups Projects
Commit a372d415 authored by ynerant's avatar ynerant Committed by ynerant
Browse files

[docker] Docker is packaged and maintained by the Debian team


Signed-off-by: ynerant's avatarYohann D'ANELLO <ynerant@crans.org>
parent e834ff1b
No related branches found
No related tags found
1 merge request!313Bullseye
---
# Install HTTPS support for APT
- name: Install apt-transport-https
- name: Install Docker
apt:
update_cache: true
name:
- apt-transport-https
- ca-certificates
- curl
- gnupg2
- software-properties-common
state: present
register: apt_result
retries: 3
until: apt_result is succeeded
# Add the key
- name: Configure the apt key
apt_key:
url: https://download.docker.com/linux/debian/gpg
id: 9DC858229FC7DD38854AE2D88D81803C0EBFCD88
state: present
register: apt_key_result
retries: 3
until: apt_key_result is succeeded
# Add the repository into source list
- name: Configure docker repository
apt_repository:
repo: "{{ item }}"
state: present
loop:
- deb https://download.docker.com/linux/debian buster stable
- name: Install docker
apt:
update_cache: true
name:
- docker-ce
- docker-ce-cli
- containerd.io
- docker
- docker.io
state: present
register: apt_result
retries: 3
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment