trying variable different way

This commit is contained in:
tolerryan
2024-11-04 22:38:22 -06:00
parent 9d64455bd1
commit 2e4c68d9a1
2 changed files with 8 additions and 12 deletions

View File

@@ -1,8 +1,3 @@
vmip {
# needed to pass to local-exec script
ip = "192.168.0.57"
}
resource "proxmox_lxc" "grail" {
target_node = "pve"
hostname = "grail-tf"
@@ -44,7 +39,10 @@ resource "proxmox_lxc" "grail" {
}
provisioner "local-exec" {
command = "./.ansible.d/setup.sh ${vmip.ip}"
command = "./.ansible.d/setup.sh $IP"
environment = {
IP = "192.168.0.57"
}
}
}