From 728f69bd14a8f99ca217b2a82ec23b8f0f90922d Mon Sep 17 00:00:00 2001 From: shaerpour Date: Wed, 14 May 2025 12:33:24 +0330 Subject: [PATCH] feat: Add second ssh keypair for testing force option --- .../targets/setup_ssh_keypair/tasks/main.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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