ansible / ansible.builtin / v2.9.27 / connection / docker Run tasks in docker containers | "added in version" 2.0 of ansible.builtin" Authors: Lorin Hochestein, Leendert Brouweransible.builtin.docker (v2.9.27) — connection
pip
Install with pip install ansible==2.9.27
Run commands or put/fetch files to an existing docker container.
remote_addr: default: inventory_hostname description: - The name of the container you want to access. vars: - name: ansible_host - name: ansible_docker_host remote_user: description: - The user to execute as inside the container vars: - name: ansible_user - name: ansible_docker_user docker_extra_args: default: '' description: - Extra arguments to pass to the docker command line