blob: ac6c474631b10ae2148195056b64e953f1930839 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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
|