# Ansible 2.1 not logging commands

**URL:** <https://forum.ansible.com/t/ansible-2-1-not-logging-commands/21786>\
**Category:** Ansible Project\
**Created:** [June 15, 2016, 5:58pm UTC](https://forum.ansible.com/t/ansible-2-1-not-logging-commands/21786 "2016-06-15T17:58:36Z")\
**Posts on this page:** 1\
**Page:** 1

<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:** [June 15, 2016, 5:58pm UTC](https://forum.ansible.com/t/ansible-2-1-not-logging-commands/21786/1 "2016-06-15T17:58:36Z")

</div>

Hi,

With Ansible 2.1 the commands are not being logged to the ansible.log file. With ansible 1.9.4 the commands are logged. Is there a setting or a callback plugin to check?

System with ansible 1.9.4, rpm ansible-1.9.4-1.el7.noarch.

`  
2016-06-15 13:33:53,312 p=6786 u=root |  
2016-06-15 13:33:53,312 p=6786 u=root | /bin/ansible-playbook ping.yml -i inv/qa/hosts\_ansible\_testing --check  
2016-06-15 13:33:53,312 p=6786 u=root |  
2016-06-15 13:33:59,919 p=6786 u=root | PLAY [all] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
2016-06-15 13:33:59,921 p=6786 u=root | TASK: [Ping systems] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

`

System with ansible 2.1.0.0, rpm ansible-2.1.0.0-1.el7.noarch.

`2016-06-15 13:34:07,646 p=5690 u=root | [DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and make sure become_method is 'sudo' (default). This feature will be removed in a future release. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. 2016-06-15 13:34:07,817 p=5690 u=root | PLAY [all] *********************************************************************2016-06-15 13:34:07,923 p=5690 u=root | TASK [Ping systems]************************************************************`

Thanks,  
John
