Make the default Ansible_managed string static so it doesn't interfere with idempotency

This commit is contained in:
Toshio Kuratomi 2016-10-18 13:16:27 -07:00 committed by Brian Coca
commit 5037dc4e69
2 changed files with 4 additions and 3 deletions

View file

@ -125,8 +125,9 @@
# templates indicates to users editing templates files will be replaced.
# replacing {file}, {host} and {uid} and strftime codes with proper values.
#ansible_managed = Ansible managed: {file} modified on %Y-%m-%d %H:%M:%S by {uid} on {host}
# This short version is better used in templates as it won't flag the file as changed every run.
#ansible_managed = Ansible managed: {file} on {host}
# {file}, {host}, {uid}, and the timestamp can all interfere with idempotence
# in some situations so the default is a static string:
#ansible_managed = Ansible managed
# by default, ansible-playbook will display "Skipping [host]" if it determines a task
# should not be run on a host. Set this to "False" if you don't want to see these "Skipping"