--- - name: debian package requirements apt: pkg: - apt-transport-https - ca-certificates - curl - gnupg2 - software-properties-common - python3-pip - name: debian repository key apt_key: url: https://download.docker.com/linux/debian/gpg id: 9DC858229FC7DD38854AE2D88D81803C0EBFCD88 - name: debian repository apt_repository: repo: deb [arch=amd64] https://download.docker.com/linux/debian {{ansible_distribution_release}} stable filename: docker - name: docker-ce apt: pkg: docker-ce - name: docker python module for ansible pip: name: docker executable: pip3