community.general.lxc (3.8.10) — 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:==3.8.10


Add to requirements.yml

  collections:
    - name: community.general
      version: 3.8.10

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: ansible_host
    - name: ansible_lxc_host