Fixed typo.

This commit is contained in:
Emiliano Vavassori 2022-08-18 00:22:54 +02:00
parent a9a712cada
commit 1651a1e269

View File

@ -84,7 +84,7 @@ vm = proxmox.vm.VirtualMachine("vm",
# Creating the inventory file # Creating the inventory file
inventory = command.local.Command("a-inventory", inventory = command.local.Command("a-inventory",
create = vm.ipv4_addresses[1][0].apply( create = vm.ipv4_addresses[1][0].apply(
lambda ipaddr: f"echo '{vm_name} ansible_host={lanip} ansible_user={vm_username}' >./inventory" lambda ipaddr: f"echo '{vm_name} ansible_host={ipaddr} ansible_user={vm_username}' >./inventory"
), ),
delete = "rm -f ./inventory", delete = "rm -f ./inventory",
opts = pulumi.ResourceOptions(depends_on = [ vm ]) opts = pulumi.ResourceOptions(depends_on = [ vm ])