local-exec section was missing from main.tf

parent a533cb0b
/.terraform
/terraform.d
plan
\ No newline at end of file
......@@ -67,8 +67,19 @@ resource "proxmox_vm_qemu" "prox-vm" {
]
}
# Reboot VM to fix DNS entry and remove cloud-init drive
provisioner "local-exec" {
working_dir = "./ansible/"
command = "ansible-playbook -i inventory.yaml phase1.yaml --extra-vars 'vm=${self.name} ansible_become_pass=${data.azurerm_key_vault_secret.itnoobs-keyvault.0.value}'"
}
# Install QEMU agent and create CPU hotplug config file if not there, then reboot
provisioner "local-exec" {
working_dir = "./ansible/"
command = " ansible-playbook --flush-cache -i ${self.name}, phase2.yaml"
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment