community.general.incus connection – Run tasks in Incus instances using the Incus CLI
Note
This connection plugin is part of the community.general collection (version 11.2.1).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.incus
.
New in community.general 8.2.0
Synopsis
Run commands or put/fetch files to an existing Incus instance using Incus CLI.
Parameters
Parameter |
Comments |
---|---|
The shell to use for execution inside the instance. Default: Configuration:
|
|
Become command used to switch to a non-root user. Is only used when Default: Configuration:
|
|
The name of the Incus project to use (per Projects are used to divide the instances running on a server. Default: Configuration:
|
|
The name of the Incus remote to use (per Remotes are used to access multiple servers from a single client. Default: Configuration:
|
|
The instance identifier. Default: Configuration:
|
|
User to login/authenticate as. Can be set from the CLI with the Default: Configuration:
|
Note
Configuration entries listed above for each entry type (Ansible variable, environment variable, and so on) have a low to high priority order. For example, a variable that is lower in the list will override a variable that is higher up. The entry types are also ordered by precedence from low to high priority order. For example, an ansible.cfg entry (further up in the list) is overwritten by an Ansible variable (further down in the list).