2020-08-30 00:23:41 +00:00
|
|
|
---
|
|
|
|
- name: install docker dependencies
|
|
|
|
apt:
|
|
|
|
state: present
|
|
|
|
name:
|
|
|
|
- apt-transport-https
|
|
|
|
- ca-certificates
|
|
|
|
- curl
|
|
|
|
- gnupg-agent
|
|
|
|
- software-properties-common
|
|
|
|
|
|
|
|
- name: add docker apt key
|
|
|
|
apt_key:
|
|
|
|
url: https://download.docker.com/linux/debian/gpg
|
|
|
|
state: present
|
|
|
|
id: 9DC858229FC7DD38854AE2D88D81803C0EBFCD88
|
|
|
|
|
|
|
|
- name: add docker repo
|
|
|
|
apt_repository:
|
2021-08-16 01:30:56 +00:00
|
|
|
repo: "deb [arch={{ docker_arch }}] https://download.docker.com/linux/debian bullseye stable"
|
2020-08-30 00:23:41 +00:00
|
|
|
state: present
|
2021-08-16 01:30:56 +00:00
|
|
|
mode: 0644
|
2020-08-30 00:23:41 +00:00
|
|
|
|
2021-08-16 01:30:56 +00:00
|
|
|
- name: update apt cache
|
|
|
|
apt:
|
2020-08-30 00:23:41 +00:00
|
|
|
- name: install docker-ce
|
|
|
|
apt:
|
|
|
|
state: present
|
2021-08-16 01:30:56 +00:00
|
|
|
update_cache: True
|
2020-08-30 00:23:41 +00:00
|
|
|
name:
|
|
|
|
- docker-ce
|
|
|
|
- docker-ce-cli
|
|
|
|
- containerd.io
|
|
|
|
...
|