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

Add option to control ansible verbosity

parent efb2cdfd
No related branches found
No related tags found
No related merge requests found
......@@ -78,7 +78,7 @@ build {
user = var.ssh_username
groups = ["headnode"]
playbook_file = "./CRI_Cluster_Monitor/clustermon.yml"
ansible_env_vars =[ "ANSIBLE_DEBUG=${var.ANSIBLE_DEBUG}", "ANSIBLE_FORCE_COLOR=true"]
ansible_env_vars =[ "ANSIBLE_VERBOSITY=${var.ANSIBLE_VERBOSITY}", "ANSIBLE_DEBUG=${var.ANSIBLE_DEBUG}", "ANSIBLE_FORCE_COLOR=true"]
extra_arguments = [
"-b",
]
......
......@@ -80,3 +80,8 @@ variable "ANSIBLE_DEBUG" {
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