This commit is contained in:
tolerryan
2025-11-04 01:10:55 -06:00
parent b4786091be
commit 86ce73c39b
2 changed files with 1 additions and 1 deletions

18
modules/ansible_setup.tf Normal file
View File

@@ -0,0 +1,18 @@
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}\""
}
}