diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2022-09-20 18:11:00 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2022-09-20 18:11:00 +0200 |
commit | e56713301b19c67480d84b55dd513575b50cfd42 (patch) | |
tree | 335eb6d29bc208d9c8057bb83c08311b4cf0316d /roles/signed_certificate/tasks/sign.yml | |
parent | 216bc43ef7a270925ac597806c06030354ba9149 (diff) | |
download | ansible_collection-e56713301b19c67480d84b55dd513575b50cfd42.tar.gz |
ACME for signed_certificate
Diffstat (limited to 'roles/signed_certificate/tasks/sign.yml')
-rw-r--r-- | roles/signed_certificate/tasks/sign.yml | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/roles/signed_certificate/tasks/sign.yml b/roles/signed_certificate/tasks/sign.yml deleted file mode 100644 index b99df32..0000000 --- a/roles/signed_certificate/tasks/sign.yml +++ /dev/null @@ -1,31 +0,0 @@ ---- -- name: Create CSR - community.crypto.openssl_csr_pipe: - privatekey_path: '{{ key_path }}/{{ cert_name }}.key' - common_name: '{{ ansible_facts.fqdn }}' - subject_alt_name: '{{ alt_name }}' - register: request - become: yes - -- name: Sign OpenSSL Certificate - community.crypto.x509_certificate_pipe: - provider: ownca - ownca_privatekey_path: '{{ signed_certificate.privkey_path }}' - ownca_privatekey_passphrase: '{{ signed_certificate.privkey_passphrase }}' - ownca_content: '{{ signed_certificate.cert_content }}' - ownca_not_after: '{{ signed_certificate.valid_for }}' - csr_content: '{{ request.csr }}' - delegate_to: localhost - register: cert - -- name: Install Signed OpenSSL Certificate - copy: - dest: '{{ cert_path }}/{{ cert_name }}.pem' - content: '{{ cert.certificate }}' - owner: '{{ owner }}' - group: '{{ group }}' - become: yes - -- name: Set cert_changed flag - set_fact: - cert_changed: True |