- 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