You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
762 B
YAML

---
- 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-compose