diff --git a/infrastructure/create-resources/hcloud.tf b/infrastructure/create-resources/hcloud.tf index fbea7e5..7332faf 100644 --- a/infrastructure/create-resources/hcloud.tf +++ b/infrastructure/create-resources/hcloud.tf @@ -17,6 +17,11 @@ resource "hcloud_server" "serverctl_master" { ] placement_group_id = hcloud_placement_group.serverctl_master.id + + lifecycle { + create_before_destroy = true + } + provisioner "remote-exec" { inline = ["sudo apt update", "sudo apt install python3 -y", "echo Done!"]