output name and id to file
This commit is contained in:
@@ -5,6 +5,9 @@ terraform {
|
|||||||
proxmox = {
|
proxmox = {
|
||||||
source = "telmate/proxmox"
|
source = "telmate/proxmox"
|
||||||
}
|
}
|
||||||
|
ansible = {
|
||||||
|
source = "ansible/ansible"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -24,3 +24,10 @@ resource "proxmox_lxc" "basic" {
|
|||||||
ip = "dhcp"
|
ip = "dhcp"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
resource "local_file" "Ans_inv" {
|
||||||
|
content = <<-DOC
|
||||||
|
hostname: ${proxmox_lxc.basic.hostname}
|
||||||
|
id: ${proxmox_lxc.basic.id}
|
||||||
|
DOC
|
||||||
|
filename = "${path.module}/output.txt"
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user