1
0
Fork 0
home-ansible/roles/docker/tasks/main.yml

21 lines
466 B
YAML
Raw Normal View History

2022-12-23 00:08:11 -05:00
---
- name: Add apt key for docker
apt_key:
2023-10-15 22:55:26 -04:00
url: https://download.docker.com/linux/debian/gpg
2022-12-23 00:08:11 -05:00
state: present
- name: Add docker repository into sources list
apt_repository:
2023-10-15 22:55:26 -04:00
repo: deb https://download.docker.com/linux/debian bullseye stable
2022-12-23 00:08:11 -05:00
state: present
- name: Install docker packages
apt:
name:
- docker-ce
- docker-ce-cli
- containerd.io
2023-10-15 22:55:26 -04:00
- docker-buildx-plugin
2022-12-23 00:08:11 -05:00
- docker-compose-plugin
state: present