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

* feat: Profile and format packer ansible provisioner tasks

* feat: Colorize packer ansible provisioner tasks



Closes #260
parent c7477fd2
No related branches found
No related tags found
1 merge request!207Enable callback plugins to format the ansible log
[defaults]
# change the default callback, you can only have one 'stdout' type enabled at a time.
#stdout_callback = skippy
stdout_callback = yaml
## Ansible ships with some plugins that require whitelisting,
## this is done to avoid running all of a type by default.
## These setting lists those that you want enabled for your system.
## Custom plugins should not need this unless plugin author specifies it.
# enable callback plugins, they can output to stdout but cannot be 'stdout' type.
callbacks_enabled = timer, debug, profile_roles, profile_tasks, minimal
# Force color
force_color = true
...@@ -40,6 +40,9 @@ build { ...@@ -40,6 +40,9 @@ build {
use_proxy = false use_proxy = false
user = var.ssh_username user = var.ssh_username
groups = ["ood"] groups = ["ood"]
ansible_env_vars = [
"ANSIBLE_CONFIG=./ansible/ansible.cfg"
]
playbook_file = "./ansible/ood.yml" playbook_file = "./ansible/ood.yml"
roles_path = "./ansible/roles" roles_path = "./ansible/roles"
extra_arguments = [ extra_arguments = [
...@@ -51,7 +54,10 @@ build { ...@@ -51,7 +54,10 @@ build {
use_proxy = false use_proxy = false
user = var.ssh_username user = var.ssh_username
groups = ["ood", "knightly"] groups = ["ood", "knightly"]
ansible_env_vars = ["ANSIBLE_HOST_KEY_CHECKING=False"] ansible_env_vars = [
"ANSIBLE_HOST_KEY_CHECKING=False",
"ANSIBLE_CONFIG=./CRI_XCBC/ansible.cfg"
]
playbook_file = "./CRI_XCBC/ood-packer.yaml" playbook_file = "./CRI_XCBC/ood-packer.yaml"
extra_arguments = [ extra_arguments = [
"--extra-vars", "${var.extra_vars}" "--extra-vars", "${var.extra_vars}"
......
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