2020-03-09 13:11:34 +00:00
|
|
|
---
|
2020-09-25 06:25:48 +00:00
|
|
|
####################################################################
|
|
|
|
# WARNING: These are designed specifically for Ansible tests #
|
|
|
|
# and should not be used as examples of how to write Ansible roles #
|
|
|
|
####################################################################
|
|
|
|
|
2020-03-09 13:11:34 +00:00
|
|
|
- block:
|
|
|
|
- name: Create ECC256 account key
|
2020-11-03 07:45:32 +00:00
|
|
|
command: "{{ openssl_binary }} ecparam -name prime256v1 -genkey -out {{ output_dir }}/account-ec256.pem"
|
2020-03-09 13:11:34 +00:00
|
|
|
- name: Obtain cert 1
|
|
|
|
include_tasks: obtain-cert.yml
|
|
|
|
vars:
|
|
|
|
select_crypto_backend: auto
|
|
|
|
certgen_title: Certificate 1
|
|
|
|
certificate_name: cert-1
|
|
|
|
key_type: rsa
|
2020-12-04 13:08:14 +00:00
|
|
|
rsa_bits: "{{ default_rsa_key_size }}"
|
2020-03-09 13:11:34 +00:00
|
|
|
subject_alt_name: "DNS:example.com"
|
|
|
|
subject_alt_name_critical: no
|
|
|
|
account_key: account-ec256
|
|
|
|
challenge: tls-alpn-01
|
|
|
|
challenge_alpn_tls: acme_challenge_cert_helper
|
|
|
|
modify_account: yes
|
|
|
|
deactivate_authzs: no
|
|
|
|
force: no
|
|
|
|
remaining_days: 10
|
|
|
|
terms_agreed: yes
|
|
|
|
account_email: "example@example.org"
|
|
|
|
|
|
|
|
when: openssl_version.stdout is version('1.0.0', '>=') or cryptography_version.stdout is version('1.5', '>=')
|