36 lines
968 B
YAML
36 lines
968 B
YAML
|
---
|
||
|
####################################################################
|
||
|
# WARNING: These are designed specifically for Ansible tests #
|
||
|
# and should not be used as examples of how to write Ansible roles #
|
||
|
####################################################################
|
||
|
|
||
|
- name: Run module with backend autodetection
|
||
|
openssl_privatekey_pipe:
|
||
|
|
||
|
- block:
|
||
|
- name: Running tests with pyOpenSSL backend
|
||
|
include_tasks: impl.yml
|
||
|
vars:
|
||
|
select_crypto_backend: pyopenssl
|
||
|
|
||
|
# FIXME: minimal pyOpenSSL version?!
|
||
|
when: pyopenssl_version.stdout is version('0.6', '>=')
|
||
|
|
||
|
- name: Remove output directory
|
||
|
file:
|
||
|
path: "{{ output_dir }}"
|
||
|
state: absent
|
||
|
|
||
|
- name: Re-create output directory
|
||
|
file:
|
||
|
path: "{{ output_dir }}"
|
||
|
state: directory
|
||
|
|
||
|
- block:
|
||
|
- name: Running tests with cryptography backend
|
||
|
include_tasks: impl.yml
|
||
|
vars:
|
||
|
select_crypto_backend: cryptography
|
||
|
|
||
|
when: cryptography_version.stdout is version('0.5', '>=')
|