Debian Codegraph @

ansible_collections/hetzner/hcloud/tests/integration/targets/setup_ssh_keypair/tasks/main.yml

raw
1 ---
2 # https://github.com/ansible-collections/community.crypto/pull/504
3 - name: Create temporary directory for test_ssh_keypair
4 ansible.builtin.file:
5 state: directory
6 path: ~/tmp
7 mode: "0755"
8
9 - name: Create temporary file for test_ssh_keypair
10 ansible.builtin.tempfile:
11 path: ~/tmp
12 suffix: "{{ hcloud_ssh_key_name }}"
13 register: _tmp_ssh_key_file
14
15 - name: Create test_ssh_keypair
16 community.crypto.openssh_keypair:
17 path: "{{ _tmp_ssh_key_file.path }}"
18 force: true
19 register: test_ssh_keypair
20
21 - name: Create temporary file for test_ssh_keypair2
22 ansible.builtin.tempfile:
23 path: ~/tmp
24 suffix: "{{ hcloud_ssh_key_name }}"
25 register: _tmp_ssh_key_file2
26
27 - name: Create test_ssh_keypair2
28 community.crypto.openssh_keypair:
29 path: "{{ _tmp_ssh_key_file2.path }}"
30 force: true
31 register: test_ssh_keypair2