Debian Codegraph @

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