PARALLAX

openssl_dhparam

Manage cryptographic files natively on the target

Collection: community.crypto

Full Name: community.crypto.openssl_dhparam

Synopsis

Manage cryptographic files natively on the target

Parameters

NameTypeRequiredDefaultDescription
moderawNumeric or symbolic destination mode
ownerstringDestination owner name or numeric UID
groupstringDestination group name or numeric GID
seuserstringSELinux user or _default
serolestringSELinux role or _default
setypestringSELinux type or _default
selevelstringSELinux level or _default
attributesstringWritable Linux file attributes
unsafe_writesboolfalseAllow non-atomic writes when atomic replacement is unavailable
backupboolfalseSave existing content before replacement or deletion
pathstringyesDH parameter destination
statestringpresentWhether parameters should exist
sizeint4096DH prime size in bits
forceboolfalseGenerate fresh random parameters on every execution
select_crypto_backendstringautoCompatibility validation selector; execution is native
return_contentboolfalseReturn current DH parameter content

Example

yaml
- name: Generate fresh Diffie-Hellman parameters
  community.crypto.openssl_dhparam:
    path: /etc/ssl/dhparams.pem
    size: 2048
Search
    ↑ ↓ move↵ openesc close