13 lines
299 B
HCL
13 lines
299 B
HCL
variable "hostname" {
|
|
type = string
|
|
}
|
|
|
|
variable "ip" {
|
|
type = string
|
|
}
|
|
|
|
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}\""
|
|
}
|
|
} |