Debian Codegraph @

ansible_collections/community/crypto/tests/integration/targets/x509_certificate_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_certificates }}'
15 - name: Run module with backend autodetection
16 community.crypto.x509_certificate_pipe:
17 provider: selfsigned
18 privatekey_path: '{{ remote_tmp_dir }}/privatekey_backend_selection.pem'
19
20 - block:
21 - name: Running tests with cryptography backend
22 ansible.builtin.include_tasks: impl.yml
23 vars:
24 select_crypto_backend: cryptography
25
26 when: cryptography_version is version('3.3', '>=')