# no\_log doesn't prevent logging

**URL:** <https://forum.ansible.com/t/no-log-doesnt-prevent-logging/19017>\
**Category:** Ansible Project\
**Created:** [August 14, 2015, 12:31pm UTC](https://forum.ansible.com/t/no-log-doesnt-prevent-logging/19017 "2015-08-14T12:31:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ivan\_Voras](https://avatars.discourse-cdn.com/v4/letter/i/ec9cab/32.png) [@Ivan\_Voras](https://forum.ansible.com/u/Ivan_Voras)\
**Post date:** [August 14, 2015, 12:31pm UTC](https://forum.ansible.com/t/no-log-doesnt-prevent-logging/19017/1 "2015-08-14T12:31:17Z")

</div>

Hi,

I have a command task executed with a certain security-sensitive environment variables, and to my surprise, no\_log in a task doesn’t actually prevent logging of anything to the remote node’s syslog. According to some users ([http://grokbase.com/t/gg/ansible-project/151egjaphg/no-log-true-being-ignored](http://grokbase.com/t/gg/ansible-project/151egjaphg/no-log-true-being-ignored)), even command lines are logged, though I don’t see them in my own logs.

So, what would be needed to prevent the environment from being logged? What code is missing / broken?
