- name: Install required system packages become: true apt: pkg: - apt-transport-https - ca-certificates - curl state: latest update_cache: true - name: Add Docker GPG apt Key for become: true apt_key: url: https://download.docker.com/linux/debian/gpg state: present - name: Add Docker Repository become: true apt_repository: repo: deb https://download.docker.com/linux/debian bullseye stable state: present - name: Update apt and install docker-ce become: true apt: name: docker-ce state: latest update_cache: true