# no\_log with bin/ansible ?

**URL:** <https://forum.ansible.com/t/no-log-with-bin-ansible/18190>\
**Category:** Ansible Project\
**Created:** [May 8, 2015, 3:15pm UTC](https://forum.ansible.com/t/no-log-with-bin-ansible/18190 "2015-05-08T15:15:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ken\_Anderson](https://avatars.discourse-cdn.com/v4/letter/k/57b2e6/32.png) [@Ken\_Anderson](https://forum.ansible.com/u/Ken_Anderson)\
**Post date:** [May 8, 2015, 3:15pm UTC](https://forum.ansible.com/t/no-log-with-bin-ansible/18190/1 "2015-05-08T15:15:13Z")

</div>

Is there any way to use no\_log with ansible ad-hoc commands?

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [May 8, 2015, 4:42pm UTC](https://forum.ansible.com/t/no-log-with-bin-ansible/18190/2 "2015-05-08T16:42:16Z")

</div>

not currently.

---

<div class="post-metadata">

**Author:** ![Ken\_Anderson](https://avatars.discourse-cdn.com/v4/letter/k/57b2e6/32.png) [@Ken\_Anderson](https://forum.ansible.com/u/Ken_Anderson)\
**Post date:** [May 14, 2015, 3:15pm UTC](https://forum.ansible.com/t/no-log-with-bin-ansible/18190/3 "2015-05-14T15:15:59Z")

</div>

I found that if I changed lines 48 and 49 in normal.py and recompiled it, remote logging was disabled. 🙂  
I’m not sure what other features might be affected by this, but this minor change accomplished what I wanted.  
Ken

- if self.runner.no\_log:
- module\_args += " NO\_LOG=True"

- #if self.runner.no\_log:
- module\_args += " NO\_LOG=True"
