mirror of
https://github.com/ansible-collections/community.crypto.git
synced 2026-05-06 21:33:00 +00:00
* Remove superfluous remote_src. * Use temp dir twice instead of output_dir. * Use remote temp directory instead of output_dir. * Fix syntax error. * Add some fixes. * Copy more files to remote. * More fixes. * Fixing ACME/'cloud' tests. * Forgot when. * Try to fix filters. * Skip unnecessary steps. * Avoid collision.
43 lines
1.3 KiB
YAML
43 lines
1.3 KiB
YAML
####################################################################
|
|
# WARNING: These are designed specifically for Ansible tests #
|
|
# and should not be used as examples of how to write Ansible roles #
|
|
####################################################################
|
|
|
|
- name: Declare global variables
|
|
set_fact:
|
|
signing_key: '{{ remote_tmp_dir }}/id_key'
|
|
public_key: '{{ remote_tmp_dir }}/id_key.pub'
|
|
certificate_path: '{{ remote_tmp_dir }}/id_cert'
|
|
|
|
- name: Generate keypair
|
|
openssh_keypair:
|
|
path: "{{ signing_key }}"
|
|
type: rsa
|
|
size: 2048
|
|
|
|
- block:
|
|
- name: Import idempotency tests
|
|
import_tasks: ../tests/idempotency.yml
|
|
|
|
- name: Import key_idempotency tests
|
|
import_tasks: ../tests/key_idempotency.yml
|
|
|
|
- name: Import options tests
|
|
import_tasks: ../tests/options_idempotency.yml
|
|
|
|
- name: Import regenerate tests
|
|
import_tasks: ../tests/regenerate.yml
|
|
|
|
- name: Import remove tests
|
|
import_tasks: ../tests/remove.yml
|
|
when: not (ansible_facts['distribution'] == "CentOS" and ansible_facts['distribution_major_version'] == "6")
|
|
|
|
- name: Import ssh-agent tests
|
|
import_tasks: ../tests/ssh-agent.yml
|
|
when: openssh_version is version("7.6",">=")
|
|
|
|
- name: Remove keypair
|
|
openssh_keypair:
|
|
path: "{{ signing_key }}"
|
|
state: absent
|