Extend CI (#283)

* Run all tests on all targets. Remove hack in setup_acme.

* Fix some failing tests.

* OpenSSH tests do not work yet with default image on Ansible 2.9. Let's skip them on the cloud target.

* Make tests pass again.

* Make sure to install *latest* versions of cryptography and pyOpenSSL when not installing system packages, whenever possible.

ci_complete

* Update/fix aliases files.
This commit is contained in:
Felix Fontein
2021-09-25 17:21:06 +02:00
committed by GitHub
parent 0733b0d521
commit 44f7367e21
34 changed files with 170 additions and 44 deletions

View File

@@ -1,4 +1,3 @@
dependencies:
# - setup_openssl
- setup_remote_constraints
- setup_openssl
- setup_remote_tmp_dir

View File

@@ -4,24 +4,5 @@
# 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 }}"

View File

@@ -1 +0,0 @@
../../setup_openssl/vars/main.yml