Debian Codegraph @

ansible_collections/community/crypto/tests/integration/targets/openssl_dhparam/tasks/main.yml

raw
1 ---
2 # Copyright (c) Ansible Project
3 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
4 # SPDX-License-Identifier: GPL-3.0-or-later
5
6 ####################################################################
7 # WARNING: These are designed specifically for Ansible tests #
8 # and should not be used as examples of how to write Ansible roles #
9 ####################################################################
10
11 # The tests for this module generate unsafe parameters for testing purposes;
12 # otherwise tests would be too slow. Use sizes of at least 2048 in production!
13
14 - name: Run module with backend autodetection
15 community.crypto.openssl_dhparam:
16 path: '{{ remote_tmp_dir }}/dh_backend_selection.pem'
17 size: 512
18
19 - block:
20 - name: Running tests with OpenSSL backend
21 ansible.builtin.include_tasks: impl.yml
22
23 - ansible.builtin.include_tasks: ../tests/validate.yml
24
25 vars:
26 select_crypto_backend: openssl
27 # when: openssl_version is version('1.0.0', '>=')
28
29 - name: Remove output directory
30 ansible.builtin.file:
31 path: "{{ remote_tmp_dir }}"
32 state: absent
33
34 - name: Re-create output directory
35 ansible.builtin.file:
36 path: "{{ remote_tmp_dir }}"
37 state: directory
38
39 - block:
40 - name: Running tests with cryptography backend
41 ansible.builtin.include_tasks: impl.yml
42
43 - ansible.builtin.include_tasks: ../tests/validate.yml
44
45 vars:
46 select_crypto_backend: cryptography
47 when: cryptography_version is version('3.3', '>=')