what I\'m trying to accomplish is to run commands inside of a Docker container that has already been created on a Digital Ocean Ubuntu/Docker Droplet using Ansible.
Ended up doing something like that:
- name: execute command in docker shell: | docker exec container sh -l -c "cat /tmp/secret" register: hello - debug: msg="{{ hello.stdout }}"