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

19 lines
434 B
YAML

---
- name: Add apt key for docker
apt_key:
url: https://download.docker.com/linux/ubuntu/gpg
state: present
- name: Add docker repository into sources list
apt_repository:
repo: deb https://download.docker.com/linux/ubuntu jammy stable
state: present
- name: Install docker packages
apt:
name:
- docker-ce
- docker-ce-cli
- containerd.io
- docker-compose-plugin
state: present