Debian Codegraph @

ansible_collections/community/crypto/tests/ee/roles/openssh_keypair/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 - name: Generate key with OpenSSH binary backend
7 community.crypto.openssh_keypair:
8 path: "{{ output_path }}/openssh-key-1"
9 size: 2048
10 backend: opensshbin
11
12 - name: Generate key with cryptography backend
13 community.crypto.openssh_keypair:
14 path: "{{ output_path }}/openssh-key-2"
15 size: 2048
16 backend: cryptography
17 when: cryptography_version.stdout is ansible.builtin.version('3.0', '>=')