home-infra/tasks/docker.yml

19 lines
458 B
YAML
Raw Permalink Normal View History

2022-04-07 21:35:41 +01:00
- name: Install dependencies
package:
name:
- ca-certificates
- curl
- gnupg
- lsb-release
- name: Add Docker GPG key
apt_key:
url: https://download.docker.com/linux/raspbian/gpg
keyring: /usr/share/keyrings/docker-archive-keyring.gpg
state: present
- name: Add Docker repository
apt_repository:
repo: https://download.docker.com/linux/raspbian {{ ansible_distribution_release }} stable
state: present