Adding variable section

This commit is contained in:
tolerryan
2024-11-04 22:27:53 -06:00
parent 9ab09c4be3
commit 9d64455bd1
2 changed files with 13 additions and 3 deletions

View File

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