Files
Terraform/ansible_setup.tf
2025-11-04 01:04:26 -06:00

18 lines
367 B
HCL

variable "hostname" {
type = string
}
variable "ip" {
type = string
}
variable "flask_token" {
type = string
sensitive = true
}
resource "null_resource" "ansible_setup" {
provisioner "local-exec" {
command = "curl -k -X POST https://192.168.0.143:5000/setupansible/${var.hostname}/${var.ip} -H \"Authorization: Bearer ${var.flask_token}\""
}
}