How to debug 'changed' files from template module?

18 views
Skip to first unread message

Johannes Kastl

unread,
Jun 2, 2016, 3:13:21 PM6/2/16
to ansible...@googlegroups.com
Dear all,

I sometimes see files being reported as changed, although the contents
(apart from the ansible_managed) have not changed. The permissions are
the same.

I thought that in these cases, where only the ansible_managed line has
changed, the file would stay the same. I get this behaviour a lot with
other files, and I do not know why.

How to debug this? I am already running my playbook with -v.

Johannes

signature.asc

Dick Davies

unread,
Jun 10, 2016, 10:50:08 AM6/10/16
to ansible list
There's nothing special about ansible_managed, it's just a var like any other.
If you change the contents of a file, handlers will fire.
> --
> 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.
> To post to this group, send email to ansible...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/57508547.7090508%40ojkastl.de.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages