community.general.lxd (2.5.9) — connection

Run tasks in lxc containers via lxc CLI

Authors: Matt Clay (@mattclay) <matt@mystile.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 lxc container using lxc CLI

Inputs

    
remote:
    default: local
    description:
    - Name of the LXD remote to use.
    vars:
    - name: ansible_lxd_remote
    version_added: 2.0.0
    version_added_collection: community.general

project:
    description:
    - Name of the LXD project to use.
    vars:
    - name: ansible_lxd_project
    version_added: 2.0.0
    version_added_collection: community.general

executable:
    default: /bin/sh
    description:
    - shell to use for execution inside container
    vars:
    - name: ansible_executable
    - name: ansible_lxd_executable

remote_addr:
    default: inventory_hostname
    description:
    - Container identifier.
    vars:
    - name: ansible_host
    - name: ansible_lxd_host