mirror of
https://github.com/ansible-collections/community.crypto.git
synced 2026-05-06 13:22:58 +00:00
* Allow multiple intermediate CAs to have same subject.
* Add tests.
* Fix test name.
* Don't use CN for SAN.
* Make a bit more compatible.
* Include jinja2 compat for CentOS 6.
(cherry picked from commit 11a14543c8)
Co-authored-by: Felix Fontein <felix@fontein.de>
28 lines
871 B
YAML
28 lines
871 B
YAML
####################################################################
|
|
# WARNING: These are designed specifically for Ansible tests #
|
|
# and should not be used as examples of how to write Ansible roles #
|
|
####################################################################
|
|
|
|
- block:
|
|
|
|
- name: Make sure testhost directory exists
|
|
file:
|
|
path: '{{ remote_tmp_dir }}/files/'
|
|
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/'
|
|
|
|
- name: Run tests with copied certificates
|
|
import_tasks: existing.yml
|
|
|
|
- name: Create more certificates
|
|
import_tasks: create.yml
|
|
|
|
- name: Run tests with created certificates
|
|
import_tasks: created.yml
|
|
|
|
when: cryptography_version.stdout is version('1.5', '>=')
|