damex.incus.incus_client role – Ensure Incus client.
Note
This role is part of the damex.incus collection (version 1.6.1).
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 damex.incus.
To use it in a playbook, specify: damex.incus.incus_client.
Entry point main – Ensure Incus client.
Synopsis
Ensure Incus client.
Parameters
Parameter |
Comments |
|---|---|
Name of the APT preference file for the Incus client. |
|
APT pin specification for the Incus client package. |
|
APT pin priority for the Incus client package. |
|
Incus client configuration dictionary. |
|
Command aliases for the Incus client. |
|
Name of the default remote. |
|
Default settings for the Incus client. |
|
Command used for SPICE console connections. |
|
Default console type. |
|
Default output format for list commands. |
|
List of remote server definitions. |
|
Address of the remote server. |
|
Name of the remote. |
|
Protocol used to communicate with the remote. |
|
Whether the remote is public. Choices:
|
|
Path to the Incus client configuration directory. |
|
Path to the Incus client configuration file. |
|
Group of the client configuration files. |
|
Name of the Incus client package. |
|
Desired state of the Incus client package. Choices:
|
|
Owner of the client configuration files. |
Examples
- name: Ensure incus client
hosts: incus
tasks:
- name: Ensure incus client
ansible.builtin.import_role:
name: damex.incus.incus_client
- name: Ensure incus client with remote servers
hosts: workstations
tasks:
- name: Ensure incus client with remote servers
ansible.builtin.import_role:
name: damex.incus.incus_client
vars:
incus_client_configuration:
default-remote: local
remotes:
- name: local
addr: unix://
protocol: incus
public: false
- name: production
addr: https://incus.example.com:8443
protocol: incus
public: false