This is definitely a Packer question, but you can increase verbosity of the
playbook run by doing something like this:
{
"type": "ansible-local",
"playbook_dir": "/home/jyoung/git/ansible/playbooks",
"staging_directory": "/opt/jeremydemo",
"command": "ansible-playbook -vvvv",
"playbook_file":
"/home/jyoung/git/ansible/playbooks/packer_centos7_stig.yml"
}
On Tuesday, October 20, 2015 at 12:03:12 AM UTC-5, Nathan Sowatskey wrote:
>
> {
>
> "type": "ansible-local",
>
> "playbook_file": "playbooks/setup_devvm.yml",
>
> "extra_arguments": "-vvvvv"
>
> }
>
>
>
> On Monday, October 19, 2015 at 10:22:01 PM UTC+2, Nathan Sowatskey wrote:
>>
>> Hi
>>
>> Does anyone know how to debug what Ansible is doing as part of a Packer
>> build please?
>>
>> Using packer -debug did not help.
>>
>> In effect I need a way to introduce the -vvvvv argument to Ansible from
>> within Packer, or to configure debug in a playbook.
>>
>> Many thanks
>>
>> Nathan
>>
>>
>>
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/76b5cb5f-9acd-464e-a0db-72fdc2dee888%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.