mvoe task_token to provider.tf

This commit is contained in:
tolerryan
2025-11-04 01:17:55 -06:00
parent 3597d75378
commit 7db6541bad

View File

@@ -6,11 +6,6 @@ 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}\""