Debian Codegraph @

ansible_collections/community/crypto/tests/integration/targets/openssl_publickey/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: Generate privatekey1 - standard
13 community.crypto.openssl_privatekey:
14 path: '{{ remote_tmp_dir }}/privatekey_autodetect.pem'
15 size: '{{ default_rsa_key_size }}'
16
17 - name: Run module with backend autodetection
18 community.crypto.openssl_publickey:
19 path: '{{ remote_tmp_dir }}/privatekey_autodetect_public.pem'
20 privatekey_path: '{{ remote_tmp_dir }}/privatekey_autodetect.pem'
21
22 - name: Running tests with cryptography backend
23 ansible.builtin.include_tasks: impl.yml
24 vars:
25 select_crypto_backend: cryptography
26
27 - ansible.builtin.import_tasks: ../tests/validate.yml
28 vars:
29 select_crypto_backend: cryptography
30
31 when: cryptography_version is version('3.3', '>=')