# How to disable Ansible remote logging

**URL:** <https://forum.ansible.com/t/how-to-disable-ansible-remote-logging/28149>\
**Category:** Ansible Project\
**Created:** [July 25, 2018, 11:28am UTC](https://forum.ansible.com/t/how-to-disable-ansible-remote-logging/28149 "2018-07-25T11:28:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anaparthi\_naresh\_bab](https://avatars.discourse-cdn.com/v4/letter/a/41988e/32.png) [@anaparthi\_naresh\_bab](https://forum.ansible.com/u/anaparthi_naresh_bab)\
**Post date:** [July 25, 2018, 11:28am UTC](https://forum.ansible.com/t/how-to-disable-ansible-remote-logging/28149/1 "2018-07-25T11:28:15Z")

</div>

Hi,

As part of executing Ansible playbook, Seeing below lines are being logged on Remote Host. Would like to know if there is any option to disable this.  
Tried no\_log option. But no luck.

remoteHost sudo: em9admin : TTY=pts/1 ; PWD=/home/em9admin ; USER=root ; COMMAND=/bin/sh -c echo BECOME-SUCCESS-iuycximswdcidkjcatqpzeibxypiccyf; /usr/bin/python /home/em9admin/.ansible/tmp/ansible-tmp-1532517943.45-23653263715232/setup.py; rm -rf “/home/em9admin/.ansible/tmp/ansible-tmp-1532517943.45-23653263715232/” \> /dev/null 2\>&1  
remoteHost sshd[9992]: pam\_unix(sshd:session): session closed for user em9admin  
remoteHost sshd[10105]: Accepted password for em9admin from 172.19.252.33 port 50512 ssh2  
remoteHost sshd[10105]: pam\_unix(sshd:session): session opened for user em9admin by (uid=0)  
remoteHost sudo: em9admin : TTY=pts/1 ; PWD=/home/em9admin ; USER=root ; COMMAND=/bin/sh -c echo BECOME-SUCCESS-lhunebpywtsbmaewmvyysvirpqbvnyfr; /usr/bin/python /home/em9admin/.ansible/tmp/ansible-tmp-1532517945.47-208236500843683/user.py; rm -rf “/home/em9admin/.ansible/tmp/ansible-tmp-1532517945.47-208236500843683/” \> /dev/null 2\>&1

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [July 25, 2018, 3:13am UTC](https://forum.ansible.com/t/how-to-disable-ansible-remote-logging/28149/2 "2018-07-25T03:13:38Z")

</div>

It is in the docs  
[https://docs.ansible.com/ansible/latest/reference\_appendices/config.html#default-no-target-syslog](https://docs.ansible.com/ansible/latest/reference_appendices/config.html#default-no-target-syslog)
