# Ansible log\_path to also include the command line that invoked ansible-playbook?

**URL:** <https://forum.ansible.com/t/ansible-log-path-to-also-include-the-command-line-that-invoked-ansible-playbook/24946>\
**Category:** Ansible Project\
**Created:** [July 10, 2017, 8:39pm UTC](https://forum.ansible.com/t/ansible-log-path-to-also-include-the-command-line-that-invoked-ansible-playbook/24946 "2017-07-10T20:39:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![burns498](https://avatars.discourse-cdn.com/v4/letter/b/b487fb/32.png) [@burns498](https://forum.ansible.com/u/burns498)\
**Post date:** [July 10, 2017, 8:39pm UTC](https://forum.ansible.com/t/ansible-log-path-to-also-include-the-command-line-that-invoked-ansible-playbook/24946/1 "2017-07-10T20:39:31Z")

</div>

Question - Is it also possible for Ansible [log\_path](http://docs.ansible.com/ansible/intro_configuration.html#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

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [July 10, 2017, 8:53pm UTC](https://forum.ansible.com/t/ansible-log-path-to-also-include-the-command-line-that-invoked-ansible-playbook/24946/2 "2017-07-10T20:53:05Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![John\_G](https://avatars.discourse-cdn.com/v4/letter/j/c5a1d2/32.png) [@John\_G](https://forum.ansible.com/u/John_G)\
**Post date:** [July 11, 2017, 2:15pm UTC](https://forum.ansible.com/t/ansible-log-path-to-also-include-the-command-line-that-invoked-ansible-playbook/24946/3 "2017-07-11T14:15:51Z")

</div>

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](https://groups.google.com/forum/#!topic/ansible-project/ZEG-rnFiHoE)
