diff --git a/tests/integration/targets/setup_ssh_keypair/tasks/main.yml b/tests/integration/targets/setup_ssh_keypair/tasks/main.yml index c51b428..bb0751c 100644 --- a/tests/integration/targets/setup_ssh_keypair/tasks/main.yml +++ b/tests/integration/targets/setup_ssh_keypair/tasks/main.yml @@ -17,3 +17,15 @@ path: "{{ _tmp_ssh_key_file.path }}" force: true register: test_ssh_keypair + +- name: Create temporary file for test_ssh_keypair_2 + ansible.builtin.tempfile: + path: ~/tmp + suffix: "{{ hcloud_ssh_key_name }}" + register: _tmp_ssh_key_file_2 + +- name: Create test_ssh_keypair_2 + community.crypto.openssh_keypair: + path: "{{ _tmp_ssh_key_file_2.path }}" + force: true + register: test_ssh_keypair_2