community.proxmox.proxmox_acme_certificate module – Manages ACME SSL certificates for Proxmox VE nodes
Note
This module is part of the community.proxmox collection (version 2.0.0).
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.proxmox.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: community.proxmox.proxmox_acme_certificate.
New in community.proxmox 2.0.0
Synopsis
Order, renew or remove ACME certificates from a Certificate Authority for a specific Proxmox VE node.
Before using this module, ensure that an ACME account is configured (using community.proxmox.proxmox_acme_account) and DNS plugins are configured if using DNS-01 challenge (using community.proxmox.proxmox_acme_plugin_dns).
Requires
root@pamauthentication.
Requirements
The below requirements are needed on the host that executes this module.
proxmoxer >= 2.3
requests
Parameters
Parameter |
Comments |
|---|---|
The ACME account name to use for ordering the certificate. |
|
Specify the target host of the Proxmox VE cluster. Uses the |
|
Specify the OTP. Uses the |
|
Specify the password to authenticate with. Uses the |
|
Specify the target port of the Proxmox VE cluster. Uses the |
|
Time limit for requests towards the Proxmox VE API. Default: |
|
Specify the token ID. Uses the |
|
Specify the token secret. Uses the |
|
Specify the user to authenticate with. Uses the |
|
Path to a local certificate, which will be used to verify TLS connections. Ignored if |
|
The list of domains to include in the certificate. At least one domain is required when |
|
An optional alias domain for DNS validation. |
|
The domain name to include in the certificate. |
|
The DNS plugin to use for DNS-01 challenge validation. If not specified, the standalone HTTP-01 challenge will be used. |
|
Force certificate renewal even if the certificate is not due for renewal yet. Setting this to Choices:
|
|
The name of the Proxmox VE node for which to order/manage the ACME certificate. |
|
Desired state of the ACME certificate on the node. Choices:
|
|
Validate the TLS certificates used for the connection to the Proxmox VE API. May be set through the environment variable Choices:
|
Attributes
Attribute |
Support |
Description |
|---|---|---|
Action group: community.proxmox.proxmox |
Use |
|
Support: full |
Can run in |
|
Support: none |
Will return details on what has changed (or possibly needs changing in |
See Also
See also
- Certificate management (Proxmox documentation)
ACME accounts and certificates in Proxmox VE
- community.proxmox.proxmox_acme_certificates_info
Retrieves the list of certificates on a Proxmox VE node.
- community.proxmox.proxmox_acme_account
Manages an ACME account.
- community.proxmox.proxmox_acme_plugin_dns
Manage ACME DNS plugins on a Proxmox VE.
- Authentication
Complete guide for the Proxmox API authentication
Examples
- name: Order ACME certificate with HTTP-01 challenge (standalone)
community.proxmox.proxmox_acme_certificate:
node_name: pve-node-01
account: production
domains:
- domain: pve.example.com
- name: Order ACME certificate with DNS-01 challenge using Cloudflare
community.proxmox.proxmox_acme_certificate:
node_name: pve-node-01
account: production
domains:
- domain: pve.example.com
plugin: cloudflare
- name: Multiple domains with mixed challenge types
community.proxmox.proxmox_acme_certificate:
node_name: pve-node-01
account: production
domains:
- domain: pve.example.com
plugin: cloudflare
- domain: pve2.example.com
- name: Force certificate renewal
community.proxmox.proxmox_acme_certificate:
node_name: pve-node-01
account: production
force: true
domains:
- domain: pve.example.com
plugin: cloudflare
- name: Remove ACME certificate and configuration
community.proxmox.proxmox_acme_certificate:
node_name: pve-node-01
state: absent
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
The ACME account name used for the certificate. Returned: when |
|
The PEM-encoded certificate data. Returned: when |
|
The list of domains included in the certificate. Returned: when |
|
The alias domain used for DNS validation. Returned: success |
|
The domain name. Returned: success |
|
The DNS plugin used for validation. Returned: success |
|
The certificate fingerprint. Returned: when |
|
The certificate issuer. Returned: when |
|
Short description of the action taken. Returned: always |
|
The Proxmox VE node name. Returned: on success |
|
The certificate expiration timestamp. Returned: when |
|
The certificate start timestamp. Returned: when |
|
The certificate subject. Returned: when |
|
The certificate subject alternative names (SANs). Returned: when |