# ansible-playbook and different screen / file log output

**URL:** <https://forum.ansible.com/t/ansible-playbook-and-different-screen-file-log-output/33120>\
**Category:** Ansible Project\
**Created:** [June 8, 2020, 4:18pm UTC](https://forum.ansible.com/t/ansible-playbook-and-different-screen-file-log-output/33120 "2020-06-08T16:18:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Waldek\_Maleska](https://avatars.discourse-cdn.com/v4/letter/w/a88e57/32.png) [@Waldek\_Maleska](https://forum.ansible.com/u/Waldek_Maleska)\
**Post date:** [June 8, 2020, 4:18pm UTC](https://forum.ansible.com/t/ansible-playbook-and-different-screen-file-log-output/33120/1 "2020-06-08T16:18:23Z")

</div>

Hello,

I was wondering if such a logging scenario is possible out of the box with Ansible or it it something which would need to be implemented as a custom callback plugin:

- on screen (stdout), I’d like to see all changed/failed/warning tasks but not the ok/skipped tasks
- if it was just this, I’d use parameters from [https://docs.ansible.com/ansible/latest/plugins/callback/default.html](https://docs.ansible.com/ansible/latest/plugins/callback/default.html), namely env:ANSIBLE\_DISPLAY\_OK\_HOSTS and env:ANSIBLE\_DISPLAY\_SKIPPED\_HOSTS- in a log file (ideally in structure such as by _tree plugin_ but even a single output file [ANSIBLE\_LOG\_PATH](https://docs.ansible.com/ansible/latest/reference_appendices/config.html#envvar-ANSIBLE_LOG_PATH) would be ok) I’d like to log **all** the tasks, no matter their status  
I was trying several combinations of settings but wasn’t lucky; whenever the console output was shortened, so was the information in the log file.

Any suggestions?

Thanks,  
Waldek
