diff --git a/tests/integration/targets/ssh_key/tasks/test.yml b/tests/integration/targets/ssh_key/tasks/test.yml index 96b3d26..bc73799 100644 --- a/tests/integration/targets/ssh_key/tasks/test.yml +++ b/tests/integration/targets/ssh_key/tasks/test.yml @@ -49,6 +49,17 @@ that: - result is not changed +- name: test create ssh key idempotence with force + hetzner.hcloud.ssh_key: + name: "{{ hcloud_ssh_key_name }}" + public_key: "{{ test_ssh_keypair.public_key }}" + force: true + register: result +- name: verify create ssh key idempotence with force + assert: + that: + - result is not changed + - name: test update ssh key with check mode hetzner.hcloud.ssh_key: id: "{{ ssh_key.hcloud_ssh_key.id }}"