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/playbook_create_account.yml | |
parent | 216bc43ef7a270925ac597806c06030354ba9149 (diff) | |
download | ansible_collection-e56713301b19c67480d84b55dd513575b50cfd42.tar.gz |
ACME for signed_certificate
Diffstat (limited to 'roles/signed_certificate/playbook_create_account.yml')
-rw-r--r-- | roles/signed_certificate/playbook_create_account.yml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/roles/signed_certificate/playbook_create_account.yml b/roles/signed_certificate/playbook_create_account.yml new file mode 100644 index 0000000..ac6c474 --- /dev/null +++ b/roles/signed_certificate/playbook_create_account.yml @@ -0,0 +1,28 @@ +--- +- name: Create ACME Account + hosts: localhost + vars: + directory: 'https://acme-staging-v02.api.letsencrypt.org/directory' + contact: + - 'mailto:mail@assdfkjsdhf.com' + tasks: + - name: Create private key + community.crypto.openssl_privatekey: + path: acme_account.key + return_content: True + size: 2048 + register: privkey + + - name: Create ACME Account + community.crypto.acme_account: + acme_directory: '{{ directory }}' + acme_version: 2 + account_key_content: '{{ privkey.privatekey }}' + contact: '{{ contact }}' + state: present + terms_agreed: True + register: account + + - name: Print account + debug: + var: account |