Parameter |
Choices/Defaults |
Comments |
account_key_content
(added in 2.5) |
|
Content of the ACME account RSA or Elliptic Curve key.
Mutually exclusive with account_key_src .
Required if account_key_src is not used.
Warning: the content will be written into a temporary file, which will be deleted by Ansible when the module completes. Since this is an important private key — it can be used to change the account key, or to revoke your certificates without knowing their private keys —, this might not be acceptable.
|
account_key_src
|
|
Path to a file containing the ACME account RSA or Elliptic Curve key.
RSA keys can be created with openssl rsa ... . Elliptic curve keys can be created with openssl ecparam -genkey ... .
Mutually exclusive with account_key_content .
Required if account_key_content is not used.
aliases: account_key
|
acme_directory
|
Default:
"https://acme-staging.api.letsencrypt.org/directory"
|
The ACME directory to use. This is the entry point URL to access CA server API.
For safety reasons the default is set to the Let's Encrypt staging server (for the ACME v1 protocol). This will create technically correct, but untrusted certificates.
|
acme_version
(added in 2.5) |
|
The ACME version of the endpoint.
Must be 1 for the classic Let's Encrypt ACME endpoint, or 2 for the new standardized ACME v2 endpoint.
|
allow_creation
bool |
|
Whether account creation is allowed (when state is present ).
|
contact
|
Default:
[]
|
A list of contact URLs.
Email addresses must be prefixed with mailto: .
See https://tools.ietf.org/html/draft-ietf-acme-acme-10#section-7.1.2 for what is allowed.
Must be specified when state is present . Will be ignored if state is absent or changed_key .
|
new_account_key_content
|
|
Content of the Let's Encrypt account RSA or Elliptic Curve key to change to.
Same restrictions apply as to account_key_content .
Mutually exclusive with new_account_key_src .
Required if new_account_key_src is not used and state is changed_key .
|
new_account_key_src
|
|
Path to a file containing the Let's Encrypt account RSA or Elliptic Curve key to change to.
Same restrictions apply as to account_key_src .
Mutually exclusive with new_account_key_content .
Required if new_account_key_content is not used and state is changed_key .
|
state
required |
Choices:
- present
- absent
- changed_key
|
The state of the account, to be identified by its account key.
If the state is absent , the account will either not exist or be deactivated.
If the state is changed_key , the account must exist. The account key will be changed; no other information will be touched.
|
terms_agreed
bool |
|
Boolean indicating whether you agree to the terms of service document.
ACME servers can require this to be true.
|
validate_certs
bool
(added in 2.5) |
|
Whether calls to the ACME directory will validate TLS certificates.
Warning: Should only ever be set to no for testing purposes, for example when testing against a local Pebble server.
|