Format and profile the ansible provisioner tasks during packer build
Ansible allows yaml formatting for the output with stdout_callback. It also provides callback plugins that can profile a role or a task. We need to enable them in our config.
For context, I was trying to measure the time taken by a task or a role in ansible during a packer build. Currently, the packer timestamps provided are the only way to measure the time taken by tasks, roles, and playbooks. Since packer produces machine-readable format the timestamps are in epoch. It takes extra effort to measure the time taken by a task or to know what time the task was run. willshould help with these difficulties.