Debian Codegraph @

ansible_collections/community/crypto/tests/integration/targets/openssl_csr/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 - block:
12 - name: Prepare private key for backend autodetection test
13 community.crypto.openssl_privatekey:
14 path: '{{ remote_tmp_dir }}/privatekey_backend_selection.pem'
15 size: '{{ default_rsa_key_size }}'
16 - name: Run module with backend autodetection
17 community.crypto.openssl_csr:
18 path: '{{ remote_tmp_dir }}/csr_backend_selection.csr'
19 privatekey_path: '{{ remote_tmp_dir }}/privatekey_backend_selection.pem'
20 subject:
21 commonName: www.ansible.com
22
23 - name: Running tests with cryptography backend
24 ansible.builtin.include_tasks: impl.yml
25 vars:
26 select_crypto_backend: cryptography
27
28 - ansible.builtin.import_tasks: ../tests/validate.yml
29 vars:
30 select_crypto_backend: cryptography
31
32 when: cryptography_version is version('3.3', '>=')