mirror of
https://github.com/ansible-collections/community.crypto.git
synced 2026-05-07 13:53:06 +00:00
* New default docker image no longer contains bcrypt. * Install cryptography for ACME tests. * Add constraints.
28 lines
1.1 KiB
YAML
28 lines
1.1 KiB
YAML
---
|
|
####################################################################
|
|
# WARNING: These are designed specifically for Ansible tests #
|
|
# and should not be used as examples of how to write Ansible roles #
|
|
####################################################################
|
|
|
|
# BEGIN HACK: remove whenever we know how to properly detect 'default' docker container !!!!!!!!!!!!!!!!!!!!!
|
|
- name: Default value for OpenSSL binary path
|
|
set_fact:
|
|
openssl_binary: openssl
|
|
|
|
- name: Make sure cryptography is installed
|
|
pip:
|
|
name: cryptography
|
|
extra_args: "-c {{ remote_constraints }}"
|
|
|
|
- name: Register openssl version
|
|
shell: "{{ openssl_binary }} version | cut -d' ' -f2"
|
|
register: openssl_version
|
|
|
|
- name: Register cryptography version
|
|
command: "{{ ansible_python.executable }} -c 'import cryptography; print(cryptography.__version__)'"
|
|
register: cryptography_version
|
|
# END HACK !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
|
|
- debug:
|
|
msg: "ACME test container IP is {{ acme_host }}; OpenSSL version is {{ openssl_version.stdout }}; cryptography version is {{ cryptography_version.stdout }}"
|