misc/docker: Reworked role to use docker package from distro repo

master
Felix Stupp 4 years ago
parent 8725e65dfb
commit 7d240539c8
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -1,3 +0,0 @@
---
docker_version: "stable"

@ -1,29 +1,9 @@
---
- name: Add key for source for docker
apt_key:
state: present
id: 9DC858229FC7DD38854AE2D88D81803C0EBFCD88
url: https://download.docker.com/linux/debian/gpg
- name: Add source for docker
apt_repository:
state: present
repo: "deb [arch={{ ansible_local.dpkg.architecture }}] https://download.docker.com/linux/debian {{ ansible_distribution_release }} {{ docker_version }}"
filename: docker
update_cache: yes
- name: Install Docker-CE
apt:
state: present
name:
- docker-ce
- docker-ce-cli
- containerd.io
- python3-docker
install_recommends: no # To fix https://github.com/raspberrypi/linux/issues/3021
- name: Docker Module Python3 Dependencies
pip:
name:
- docker.io
- docker-compose
- python3-docker

Loading…
Cancel
Save