Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Document disabling diff on task level #37998

Merged
merged 2 commits into from
Apr 5, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 15 additions & 0 deletions docs/docsite/rst/user_guide/playbooks_checkmode.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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