community.general.chroot (2.5.9) — connection

Interact with local chroot

Authors: Maykel Moya (!UNKNOWN) <mmoya@speedyrails.com>

Install collection

Install with ansible-galaxy collection install community.general:==2.5.9


Add to requirements.yml

  collections:
    - name: community.general
      version: 2.5.9

Description

Run commands or put/fetch files to an existing chroot on the Ansible controller.

Inputs

    
chroot_exe:
    default: chroot
    description:
    - User specified chroot binary
    env:
    - name: ANSIBLE_CHROOT_EXE
    ini:
    - key: exe
      section: chroot_connection
    vars:
    - name: ansible_chroot_exe

executable:
    default: /bin/sh
    description:
    - User specified executable shell
    env:
    - name: ANSIBLE_EXECUTABLE
    ini:
    - key: executable
      section: defaults
    vars:
    - name: ansible_executable

remote_addr:
    default: inventory_hostname
    description:
    - The path of the chroot you want to access.
    vars:
    - name: ansible_host