community.proxmox.proxmox_acme_account module – Manages an ACME account
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_account.
New in community.proxmox 2.0.0
Synopsis
Create, update or delete an ACME account on the Proxmox VE.
When an account already exists, only the contact email can be updated (Proxmox API limitation).
Requires
root@pamauthentication.
Requirements
The below requirements are needed on the host that executes this module.
proxmoxer >= 2.3
requests
Parameters
Parameter |
Comments |
|---|---|
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 |
|
Contact email address for the ACME account. Required when creating a new account (Proxmox API). |
|
URL of the ACME CA directory endpoint. |
|
HMAC key for External Account Binding (EAB). |
|
Key identifier for External Account Binding (EAB). |
|
The ACME account name (filename). Default: |
|
Desired state of the ACME account. Choices:
|
|
URL of the CA terms of service. |
|
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_accounts_info
List ACME account names.
- community.proxmox.proxmox_acme_account_info
Retrieve information about a single ACME account.
- Authentication
Complete guide for the Proxmox API authentication
Examples
- name: Create ACME account
community.proxmox.proxmox_acme_account:
name: example
contact: example@example.com
directory: https://acme-staging-v02.api.letsencrypt.org/directory
tos: https://letsencrypt.org/documents/LE-SA-v1.3-September-21-2022.pdf
- name: Update ACME account contact
community.proxmox.proxmox_acme_account:
name: example
contact: other@example.com
- name: Ensure ACME account exists
community.proxmox.proxmox_acme_account:
name: example
- name: Remove ACME account
community.proxmox.proxmox_acme_account:
name: example
state: absent
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
ACME account data returned by the API. Returned: when |
|
Contact email addresses. Returned: success |
|
Account creation timestamp from the ACME API. Returned: success |
|
Account status (for example Returned: success |
|
Directory URL of the ACME account. Returned: when |
|
Account resource URL from the ACME CA. Returned: when |
|
Short description of the action taken. Returned: always |
|
The ACME account configuration name. Returned: on success |
|
Terms of service URL for the account. Returned: when |