forked from infra/ansible
1
0
Fork 0

docker: use debian packages instead of upstream

This commit is contained in:
Markus 2022-09-30 13:12:58 +02:00
parent 6b5c59183e
commit 5f39fd3ea7
1 changed files with 4 additions and 11 deletions

View File

@ -1,17 +1,10 @@
---
- name: Enable docker apt-key
apt_key: url='https://download.docker.com/linux/debian/gpg'
- name: Enable docker repository
apt_repository:
repo: 'deb https://download.docker.com/linux/debian {{ ansible_distribution_release }} stable'
filename: docker
- name: Install docker
apt:
name:
- docker-ce
- docker-ce-cli
- containerd.io
- docker.io
- python3-docker
- name: Enable docker
service: name=docker state=started enabled=yes