39 lines
956 B
YAML
39 lines
956 B
YAML
|
- name: be sure the old docker packages are not installed
|
||
|
apt:
|
||
|
name:
|
||
|
- docker
|
||
|
- docker-engine
|
||
|
- docker.io
|
||
|
- containerd
|
||
|
- runc
|
||
|
state: absent
|
||
|
|
||
|
- name: be sure the docker apt signing key is installed
|
||
|
apt_key:
|
||
|
id: 9DC858229FC7DD38854AE2D88D81803C0EBFCD88
|
||
|
url: https://download.docker.com/linux/debian/gpg
|
||
|
state: present
|
||
|
|
||
|
- name: be sure the docker apt repo is configured
|
||
|
apt_repository:
|
||
|
repo: deb https://download.docker.com/linux/debian buster stable
|
||
|
state: present
|
||
|
|
||
|
- name: be sure the packages required by docker are installed
|
||
|
apt:
|
||
|
name:
|
||
|
- docker-ce
|
||
|
- docker-ce-cli
|
||
|
- docker-compose
|
||
|
- containerd.io
|
||
|
- python3-docker
|
||
|
- python3-pip
|
||
|
- python3-setuptools
|
||
|
update_cache: yes
|
||
|
|
||
|
- name: be sure to be logged into the ki registry
|
||
|
docker_login:
|
||
|
registry: registry.wtf-eg.net
|
||
|
username: drone
|
||
|
password: "{{ wtf_docker_registry_password }}"
|