set create before destory
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Kasper Juul Hermansen 2022-02-19 20:23:54 +01:00
parent 44323ef46b
commit c50547c2fb
Signed by: kjuulh
GPG Key ID: 0F95C140730F2F23

View File

@ -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!"]