Ansible log_path to also include the command line that invoked ansible-playbook?

24 views
Skip to first unread message

burn...@umn.edu

unread,
Jul 10, 2017, 4:39:31 PM7/10/17
to Ansible Project
Question - Is it also possible for Ansible log_path to log the actual command that was used to invoke the ansible-playbook?

It does a great job of tracking tasks and status, but I can't see the command itself. Would be helpful to know if a tag was skipped, command line var was passed, or other command line change that isn't immediately clear by the output.

Thanks

Kai Stian Olstad

unread,
Jul 10, 2017, 4:53:37 PM7/10/17
to ansible...@googlegroups.com
On 10. juli 2017 22:39, burn...@umn.edu wrote:
> It does a great job of tracking tasks and status, but I can't see the
> command itself. Would be helpful to know if a tag was skipped, command line
> var was passed, or other command line change that isn't immediately clear
> by the output.

I recommend taking a look at ARA: Ansible Run Analysis
https://github.com/openstack/ara

--
Kai Stian Olstad

John G

unread,
Jul 11, 2017, 10:15:51 AM7/11/17
to Ansible Project
Ansible 1.9 did log the command, but around 2.x it stopped logging the commands.

See old post for comparison examples. https://groups.google.com/forum/#!topic/ansible-project/ZEG-rnFiHoE
Reply all
Reply to author
Forward
0 new messages