mirror of
https://github.com/ansible-collections/community.crypto.git
synced 2026-05-06 21:33:00 +00:00
Ansible 2.9 tests (#14)
* Add CI group 2 for Ansible 2.9 tests. * Temporarily disable some nodes. * Fix ignore.txt. * Use version prefix instead of groups. * Ansible 2.9 doesn't support Python 3.9 ci_complete * Make Ansible 2.9 compatible. * Replace archive/unarchive with copy. * Remove dependency on community.general in integration tests for Ansible 2.9. * Let's see. * Ansible 2.9's copy doesn't create directories. * Re-enable no dependency. ci_complete * path should be bytes. * Reenable nodes, add two more. * Force complete CI run for Ansible 2.9. * Used wrong variable. * Fix Ansible 2.9 compatibility...
This commit is contained in:
@@ -2,18 +2,16 @@
|
||||
command: '{{ ansible_python.executable }} -c ''import cryptography; print(cryptography.__version__)'''
|
||||
register: cryptography_version
|
||||
- block:
|
||||
- name: Archive test files
|
||||
community.general.archive:
|
||||
path: '{{ role_path }}/files/'
|
||||
dest: '{{ output_dir }}/files.tgz'
|
||||
- name: Create temporary directory to store files
|
||||
- name: Make sure testhost directory exists
|
||||
file:
|
||||
state: directory
|
||||
path: '{{ remote_tmp_dir }}/files/'
|
||||
- name: Unarchive test files on testhost
|
||||
unarchive:
|
||||
src: '{{ output_dir }}/files.tgz'
|
||||
state: directory
|
||||
when: ansible_version.string is version('2.10', '<')
|
||||
- name: Copy test files to testhost
|
||||
copy:
|
||||
src: '{{ role_path }}/files/'
|
||||
dest: '{{ remote_tmp_dir }}/files/'
|
||||
remote_src: yes
|
||||
- name: Find root for cert 1
|
||||
certificate_complete_chain:
|
||||
input_chain: '{{ lookup(''file'', ''cert1-fullchain.pem'', rstrip=False) }}'
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
pkg_mgr: community.general.pkgng
|
||||
ansible_pkg_mgr: community.general.pkgng
|
||||
cacheable: yes
|
||||
when: ansible_os_family == "FreeBSD"
|
||||
when: ansible_os_family == 'FreeBSD' and ansible_version.string is version('2.10', '>=')
|
||||
|
||||
- set_fact:
|
||||
pkg_mgr: community.general.zypper
|
||||
ansible_pkg_mgr: community.general.zypper
|
||||
cacheable: yes
|
||||
when: ansible_os_family == "Suse"
|
||||
when: ansible_os_family == 'Suse' and ansible_version.string is version('2.10', '>=')
|
||||
|
||||
Reference in New Issue
Block a user