containers.podman.podman (1.12.1) — connection

Interact with an existing podman container

Authors: Tomas Tomecek (@TomasTomecek)

Install collection

Install with ansible-galaxy collection install containers.podman:==1.12.1


Add to requirements.yml

  collections:
    - name: containers.podman
      version: 1.12.1

Description

Run commands or put/fetch files to an existing container using podman tool.

Inputs

    
remote_addr:
    default: inventory_hostname
    description:
    - The ID of the container you want to access.
    vars:
    - name: ansible_host
    - name: inventory_hostname
    - name: ansible_podman_host

remote_user:
    description:
    - User specified via name or UID which is used to execute commands inside the container.
      If you specify the user via UID, you must set C(ANSIBLE_REMOTE_TMP) to a path that
      exits inside the container and is writable by Ansible.
    env:
    - name: ANSIBLE_REMOTE_USER
    ini:
    - key: remote_user
      section: defaults
    vars:
    - name: ansible_user

podman_executable:
    default: podman
    description:
    - Executable for podman command.
    env:
    - name: ANSIBLE_PODMAN_EXECUTABLE
    vars:
    - name: ansible_podman_executable

podman_extra_args:
    default: ''
    description:
    - Extra arguments to pass to the podman command line.
    env:
    - name: ANSIBLE_PODMAN_EXTRA_ARGS
    ini:
    - key: podman_extra_args
      section: defaults
    vars:
    - name: ansible_podman_extra_args