Skip to content
Snippets Groups Projects
Commit 1a3f1f5a authored by Eesaan Atluri's avatar Eesaan Atluri
Browse files

feat: Options for verbosity,debug ansible provisioner

parent 29682935
No related branches found
No related tags found
No related merge requests found
Pipeline #11779 failed with stages
in 1 minute and 7 seconds
...@@ -47,7 +47,16 @@ build { ...@@ -47,7 +47,16 @@ build {
use_proxy = false use_proxy = false
user = var.ssh_username user = var.ssh_username
groups = ["proxy"] groups = ["proxy"]
ansible_env_vars = ["ANSIBLE_TIMEOUT=60", "ANSIBLE_HOST_KEY_CHECKING=False"] ansible_env_vars = [
"ANSIBLE_TIMEOUT=60",
"ANSIBLE_HOST_KEY_CHECKING=False",
"ANSIBLE_VERBOSITY=${var.ANSIBLE_VERBOSITY}",
"ANSIBLE_DEBUG=${var.ANSIBLE_DEBUG}",
"ANSIBLE_FORCE_COLOR=true"
]
extra_arguments = [
"--extra-vars", "-vvv"
]
playbook_file = "./CRI_XCBC/proxy.yaml" playbook_file = "./CRI_XCBC/proxy.yaml"
} }
} }
...@@ -94,3 +94,15 @@ variable "volume_size" { ...@@ -94,3 +94,15 @@ variable "volume_size" {
description = "The default volume size for building iamge" description = "The default volume size for building iamge"
} }
variable "ANSIBLE_DEBUG" {
type = string
default = "false"
description = "to turn on debugging"
}
variable "ANSIBLE_VERBOSITY" {
type = string
default = "0"
description = "to increase verbosity - 0|1|2|3|4"
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment