damex.incus.incus role – Ensure Incus.

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.

Entry point main – Ensure Incus.

Synopsis

  • Ensure Incus.

Parameters

Parameter

Comments

incus_apt_preference_name

string

Name of the APT pinning preference file.

incus_apt_preference_pin

string

APT pin specification for package priority.

incus_apt_preference_pin_priority

integer

APT pin priority value for the Incus repository.

incus_lxcfs_service_name

string

Name of the Incus LXCFS systemd service.

incus_lxcfs_service_state

string

Desired state of the Incus LXCFS systemd service.

Choices:

  • "started"

  • "stopped"

incus_package_name

string

Name of the Incus server package.

incus_package_state

string

Desired state of the Incus server package.

Choices:

  • "present"

  • "absent"

incus_package_version

string

Version of the Incus server package to install.

incus_service_name

string

Name of the Incus systemd service.

incus_service_state

string

Desired state of the Incus systemd service.

Choices:

  • "started"

  • "stopped"

incus_socket_name

string

Name of the Incus systemd socket unit.

incus_socket_state

string

Desired state of the Incus systemd socket unit.

Choices:

  • "started"

  • "stopped"

incus_user_service_name

string

Name of the Incus user systemd service.

incus_user_service_state

string

Desired state of the Incus user systemd service.

Choices:

  • "started"

  • "stopped"

incus_user_socket_name

string

Name of the Incus user systemd socket unit.

incus_user_socket_state

string

Desired state of the Incus user systemd socket unit.

Choices:

  • "started"

  • "stopped"

Examples

- name: Ensure incus
  hosts: incus
  tasks:
    - name: Ensure incus
      ansible.builtin.import_role:
        name: damex.incus.incus

- name: Ensure incus with specific version
  hosts: incus
  tasks:
    - name: Ensure incus with specific version
      ansible.builtin.import_role:
        name: damex.incus.incus
      vars:
        incus_package_name: incus-lts
        incus_package_version: 6.0.4-zabbly1