diff --git a/openstack-proxy/nodeimage.pkr.hcl b/openstack-proxy/nodeimage.pkr.hcl index 8d700c063ee45bda24978d67df7fa1c53f1d0039..18c195e572b279d743be8d062e50c5550e96fadf 100644 --- a/openstack-proxy/nodeimage.pkr.hcl +++ b/openstack-proxy/nodeimage.pkr.hcl @@ -47,7 +47,13 @@ build { use_proxy = false user = var.ssh_username 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" + ] playbook_file = "./CRI_XCBC/proxy.yaml" } } diff --git a/openstack-proxy/variables.pkr.hcl b/openstack-proxy/variables.pkr.hcl index 8e78a5db75195605b72bdcc0a8fc04964ef2b7ff..9215362da397119c2833a43ee976c0717515a931 100644 --- a/openstack-proxy/variables.pkr.hcl +++ b/openstack-proxy/variables.pkr.hcl @@ -94,3 +94,15 @@ variable "volume_size" { 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" +} +