fix: add lifecycle section for idempotency
This commit is contained in:
parent
e17e6be329
commit
e9f084443d
@ -94,6 +94,12 @@ resource "proxmox_virtual_environment_vm" "vm" {
|
|||||||
vga {
|
vga {
|
||||||
type = "std" # Standard VGA type
|
type = "std" # Standard VGA type
|
||||||
}
|
}
|
||||||
|
|
||||||
|
lifecycle {
|
||||||
|
ignore_changes = [ # Ignore initialization section after first depoloyment for idempotency
|
||||||
|
initialization
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Output the assigned IP address of the VM after provisioning
|
# Output the assigned IP address of the VM after provisioning
|
||||||
|
Loading…
x
Reference in New Issue
Block a user