community.docker.docker_container_exec - Ansible
docs.ansible.com › ansible › latestDec 21, 2021 · When connecting to Docker daemon with TLS, you might need to install additional Python packages. For the Docker SDK for Python, version 2.4 or newer, this can be done by installing docker[tls] with ansible.builtin.pip. Note that the Docker SDK for Python only allows to specify the path to the Docker configuration for very few functions.