2018-12-23 10:23:31 +01:00
|
|
|
---
|
2017-07-25 13:18:18 +02:00
|
|
|
- block:
|
2019-08-17 18:52:14 +02:00
|
|
|
- name: Generate privatekey1 - standard
|
|
|
|
openssl_privatekey:
|
|
|
|
path: '{{ output_dir }}/privatekey_autodetect.pem'
|
2017-07-25 13:18:18 +02:00
|
|
|
|
2019-08-17 18:52:14 +02:00
|
|
|
- name: Run module with backend autodetection
|
|
|
|
openssl_publickey:
|
|
|
|
path: '{{ output_dir }}/privatekey_autodetect_public.pem'
|
|
|
|
privatekey_path: '{{ output_dir }}/privatekey_autodetect.pem'
|
2017-07-25 13:18:18 +02:00
|
|
|
|
2019-08-17 18:52:14 +02:00
|
|
|
when: |
|
|
|
|
pyopenssl_version.stdout is version('16.0.0', '>=') or
|
|
|
|
cryptography_version.stdout is version('1.2.3', '>=')
|
2017-08-21 13:19:41 +02:00
|
|
|
|
2019-08-17 18:52:14 +02:00
|
|
|
- block:
|
|
|
|
- name: Running tests with pyOpenSSL backend
|
|
|
|
include_tasks: impl.yml
|
|
|
|
vars:
|
|
|
|
select_crypto_backend: pyopenssl
|
2019-03-08 17:21:18 +01:00
|
|
|
|
2019-08-17 18:52:14 +02:00
|
|
|
- import_tasks: ../tests/validate.yml
|
|
|
|
vars:
|
|
|
|
select_crypto_backend: pyopenssl
|
2019-03-08 17:21:18 +01:00
|
|
|
|
2019-08-17 18:52:14 +02:00
|
|
|
when: pyopenssl_version.stdout is version('16.0.0', '>=')
|
2019-03-08 17:21:18 +01:00
|
|
|
|
2019-08-17 18:52:14 +02:00
|
|
|
- name: Remove output directory
|
|
|
|
file:
|
|
|
|
path: "{{ output_dir }}"
|
|
|
|
state: absent
|
2019-03-08 17:21:18 +01:00
|
|
|
|
2019-08-17 18:52:14 +02:00
|
|
|
- name: Re-create output directory
|
|
|
|
file:
|
|
|
|
path: "{{ output_dir }}"
|
|
|
|
state: directory
|
2019-03-30 14:28:10 +01:00
|
|
|
|
2019-08-17 18:52:14 +02:00
|
|
|
- block:
|
|
|
|
- name: Running tests with cryptography backend
|
|
|
|
include_tasks: impl.yml
|
|
|
|
vars:
|
|
|
|
select_crypto_backend: cryptography
|
2019-03-30 15:38:43 +01:00
|
|
|
|
2019-08-17 18:52:14 +02:00
|
|
|
- import_tasks: ../tests/validate.yml
|
|
|
|
vars:
|
|
|
|
select_crypto_backend: cryptography
|
2017-07-25 13:18:18 +02:00
|
|
|
|
2019-08-17 18:52:14 +02:00
|
|
|
when: cryptography_version.stdout is version('1.2.3', '>=')
|