This is exactly what I was looking for; sorry, I didn't see it on my own!

Thanks,

On Monday, August 4, 2014 12:22:11 PM UTC-5, Michael DeHaan wrote:
>
> This is the "no_log: True" feature already a part of Ansible.
>
> - shell: command  # or any other module usage
>   no_log: True
>
>
>
>
>
> On Mon, Aug 4, 2014 at 12:21 PM, Mike Ray <mike.jo...@gmail.com 
> <javascript:>> wrote:
>
>> Ansible's logging to the system log is pretty sweet.
>>
>> However, there are occasions when I'd like to repress it for security 
>> concerns.
>>
>> Specifically, when using the file module and the contents flag, whatever 
>> "contents" is set to, will show up in the syslog in plain text.
>>
>> For example, when copying an ssl private key to a machine, you'd see:
>>
>> Aug  4 10:55:22 HOST ansible-file: Invoked with src=tmp6Ezoy8 
>> directory_mode=None force=False remote_src=None 
>> dest=/etc/apache2/ssl/wildcard.xes-mad.com.key selevel=None serole=None 
>> seuser=None recurse=False delimiter=None group=root content=-----BEGIN RSA 
>> PRIVATE 
>> KEY-----#012manually#012hidden#012for#012demonstration#012purposes#012-----END
>>  
>> RSA PRIVATE KEY-----#012 state=None original_basename=tmp6Ezoy8 diff_pee
>>
>>
>> So having another flag for either this module specifically or for modules 
>> in general to suppress syslog output would be great.
>>
>> The alternative is to write a temporary file and copy that over. This is 
>> not excessively unreasonable, but also just not my first choice.
>>  
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Ansible Project" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to ansible-proje...@googlegroups.com <javascript:>.
>> To post to this group, send email to ansible...@googlegroups.com 
>> <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/653f7ba8-48e5-43b6-92b3-b75a8953084a%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/ansible-project/653f7ba8-48e5-43b6-92b3-b75a8953084a%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/8416f95f-072a-45e7-bd74-b8c46e98ca9d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to