28 lines
806 B
JSON
28 lines
806 B
JSON
![]() |
[
|
||
|
{
|
||
|
"name": "install packages",
|
||
|
"become": true,
|
||
|
"ansible.builtin.apt": {
|
||
|
"pkg": [
|
||
|
"python3-cryptography"
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"name": "generate key",
|
||
|
"become": true,
|
||
|
"community.crypto.openssl_privatekey": {
|
||
|
"path": "{{var_tlscert_selfsigned_ssl_directory}}/private/{{var_tlscert_selfsigned_domain_path}}.{{var_tlscert_selfsigned_domain_base}}.pem"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"name": "generate certificate",
|
||
|
"become": true,
|
||
|
"community.crypto.x509_certificate": {
|
||
|
"privatekey_path": "{{var_tlscert_selfsigned_ssl_directory}}/private/{{var_tlscert_selfsigned_domain_path}}.{{var_tlscert_selfsigned_domain_base}}.pem",
|
||
|
"provider": "selfsigned",
|
||
|
"path": "{{var_tlscert_selfsigned_ssl_directory}}/certs/{{var_tlscert_selfsigned_domain_path}}.{{var_tlscert_selfsigned_domain_base}}.pem"
|
||
|
}
|
||
|
}
|
||
|
]
|