1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

docs: Document disabling diff on task level (#37998)

* docs: Document disabling diff on task level

Tasks that deal with secrets may leak sensitive information when
running in Check Mode. This change updates the documentation explaining
that the diff can be deactivated on task level.

The feature was requested in #14860 and got introduced in Ansible 2.4
with #28581.

* Updated for clarity
This commit is contained in:
Christian Fetzer 2018-04-05 20:08:30 +02:00 committed by scottb
parent 2a604f6fe6
commit 9cca9a9c10

View file

@ -98,3 +98,18 @@ Since the diff feature produces a large amount of output, it is best used when c
ansible-playbook foo.yml --check --diff --limit foo.example.com
.. versionadded:: 2.4
The ``--diff`` option can reveal sensitive information. This option can disabled for tasks by specifying ``diff: no``.
Example::
tasks:
- name: this task will not report a diff when the file changes
template:
src: secret.conf.j2
dest: /etc/secret.conf
owner: root
group: root
mode: '0600'
diff: no