mvoe task_token to provider.tf
This commit is contained in:
@@ -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}\""
|
||||
|
||||
Reference in New Issue
Block a user