community.general.lxc (8.5.0) — connection

Run tasks in lxc containers via lxc python library

Authors: Joerg Thalheim (!UNKNOWN) <joerg@higgsboson.tk>

Install collection

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


Add to requirements.yml

  collections:
    - name: community.general
      version: 8.5.0

Description

Run commands or put/fetch files to an existing lxc container using lxc python library

Inputs

    
executable:
    default: /bin/sh
    description:
    - Shell executable
    vars:
    - name: ansible_executable
    - name: ansible_lxc_executable

remote_addr:
    default: inventory_hostname
    description:
    - Container identifier
    vars:
    - name: inventory_hostname
    - name: ansible_host
    - name: ansible_lxc_host