community / community.general / 1.3.14 / connection / docker Run tasks in docker containers Authors: Lorin Hochestein (!UNKNOWN), Leendert Brouwer (!UNKNOWN)community.general.docker (1.3.14) — connection
Install with ansible-galaxy collection install community.general:==1.3.14
collections: - name: community.general version: 1.3.14
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