22 lines
602 B
YAML
22 lines
602 B
YAML
- name: Add Docker's official GPG key
|
|
apt_key:
|
|
url: https://download.docker.com/linux/ubuntu/gpg
|
|
keyring: /etc/apt/keyrings/docker.gpg
|
|
|
|
- name: Set up docker APT repository
|
|
apt_repository:
|
|
repo: "deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu {{ ansible_distribution_release }} stable"
|
|
|
|
- name: Install the required APT dependencies
|
|
apt:
|
|
update_cache: yes
|
|
name:
|
|
- docker-ce
|
|
- docker-ce-cli
|
|
- docker-compose
|
|
- containerd.io
|
|
- docker-compose-plugin
|
|
- jq
|
|
- unzip
|
|
- curl
|
|
- git |