How Docker was added to Debian Bullseye using Ansible. This could be helpful when adding Docker to a fleet of servers. Otherwise it's much easier to copy paste commands from the official Docker install documentation and save from creating unnecessary automation.
Copy/clone the docker folder into the roles directory of your Ansible project.