Hide file contents when using the copy module.

Hi All,

As the subject line says, is there a way to hide/disable the diff on the copy module so it doesn’t expose the contents?

[vagrant@localhost test]$ ansible-playbook -D file_copy_test.yml
[WARNING]: Host file not found: /etc/ansible/hosts

[WARNING]: provided hosts list is empty, only localhost is available

PLAY [localhost] ***************************************************************

TASK [copy] ********************************************************************
changed: [localhost]
— before
+++ after: /var/tmp/ansible/test/dummy.txt
@@ -0,0 +1 @@
+How to hide this content.

PLAY RECAP *********************************************************************
localhost : ok=1 changed=1 unreachable=0 failed=0

did you try no_log: yes option

If you don't want the diff, leave out the -D option.