- name: Install and start docker environment: PYTHONPATH: "/usr/local/lib/python2.7/dist-packages" block: - apt_key: url: https://download.docker.com/linux/debian/gpg state: present - apt_repository: repo: deb [arch=amd64] https://download.docker.com/linux/debian buster stable state: present - apt: name: docker-ce state: present - pip: name: docker-compose - systemd: enabled: yes state: started daemon_reload: yes name: docker