damex.incus.incus_certificates role – Ensure Incus certificates.
Note
This role is part of the damex.incus collection (version 1.11.7).
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 |
|---|---|
Certificates to ensure. |
|
PEM-encoded certificate content. |
|
Certificate name. |
|
Accessible project names. |
|
Certificate restriction. Choices:
|
|
Certificate desired state. Choices:
|
|
Certificate type. Choices:
|
|
Client certificate content for API authentication. |
|
TLS client certificate path for API authentication. |
|
Client key content for API authentication. |
|
TLS client key path for API authentication. |
|
Server certificate content for API verification. |
|
TLS server certificate path for API verification. |
|
Incus Unix socket path. |
|
Certificates desired state. Choices:
|
|
Incus API authentication token. |
|
Incus server API URL. |
|
TLS certificate validation. 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