ansible.builtin.docker (v2.9.27) — connection

Run tasks in docker containers

| "added in version" 2.0 of ansible.builtin"

Authors: Lorin Hochestein, Leendert Brouwer

Install Ansible via pip

Install with pip install ansible==2.9.27

Description

Run commands or put/fetch files to an existing docker container.

Inputs

    
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