fix: Use existing 'infra' SSH key instead of creating new one
Some checks failed
Deploy Cluster / Terraform (push) Failing after 17s
Deploy Cluster / Ansible (push) Has been skipped

This commit is contained in:
2026-02-28 22:03:46 +00:00
parent 1607387529
commit 27cb069101

View File

@@ -2,7 +2,6 @@ data "local_file" "ssh_public_key" {
filename = pathexpand(var.ssh_public_key)
}
resource "hcloud_ssh_key" "cluster" {
name = "${var.cluster_name}-ssh-key"
public_key = data.local_file.ssh_public_key.content
data "hcloud_ssh_key" "cluster" {
name = "infra"
}