Adding variable section
This commit is contained in:
9
wikmd.tf
9
wikmd.tf
@@ -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}"
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user