On Tue, 9 May 2017, Josh Smift wrote:

If you use the template module and the dest parameter specifies a
directory, the module creates a file in the directory with the same name
as the value of the src parameter. However, if you then change the source
contents, and run ansible-playbook with --check --diff, it says that
there's a change but doesn't show the diff.

https://docs.ansible.com/ansible/template_module.html doesn't say that you
can specify a directory as the value of the dest parameter. Should that work?

If it should work to specify a directory, should 'diff' work as well?

I can create a bug report, but I wasn't sure what the intended/expected
behavior was.

That seems to be a bug.

Can you open a bug report with a minimal reproducer and the required context-information ? If it is a bug, we need to improve our integration tests to catch this one (before fixing ;-)).

Thanks !
--
Dag

--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/alpine.LRH.2.20.1705091559290.19483%40pikachu.3ti.be.
For more options, visit https://groups.google.com/d/optout.

Reply via email to