damex.incus.incus_certificates role – Ensure Incus certificates.
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_certificates.
Entry point main – Ensure Incus certificates.
Synopsis
Ensure Incus certificates.
Parameters
Parameter |
Comments |
|---|---|
List of certificates to ensure. |
|
PEM-encoded certificate content. |
|
Name of the certificate. |
|
List of projects the certificate has access to. |
|
Whether the certificate is restricted. Choices:
|
|
Desired state of the certificate. Choices:
|
|
Type of the certificate. Choices:
|
|
Path to the TLS client certificate. |
|
Path to the TLS client key. |
|
Path to the TLS server certificate. |
|
Path to the Incus Unix socket. |
|
Desired state of the certificates. Choices:
|
|
Authentication token for the Incus API. |
|
URL of the Incus server API. |
|
Whether to validate TLS certificates. Choices:
|
Examples
- name: Ensure incus certificates
hosts: incus
tasks:
- name: Ensure incus certificates
ansible.builtin.import_role:
name: damex.incus.incus_certificates
vars:
incus_certificates:
- name: monitoring
certificate: "{{ lookup('file', 'certs/monitoring.crt') }}"
type: client
- name: backup
certificate: "{{ lookup('file', 'certs/backup.crt') }}"
type: client