I am testing out Ansible 2 (checkout from Git). And it doesn’t seem to be comparing templates properly. When I run a playbook with a template in 1.9.4, using --check --diff, it’ll show me the differences. When I run the same playbook in v2, it says “ok”.
Sorry maybe I typed it wrong, I am using --check and --diff, in v2 it is showing “ok” (which would still be a problem if I wasn’t using --diff), but in 1.9.4 it is properly showing the differences.
That’s what I’m saying. I have a file that differs from the template, when I run the playbook in v2, it says “OK”, when I run the playbook in 1.9.4, it says “Changed” and shows me the diff.
TASK: [common | Template test] ************************************************
— before: /home/loqd/ansitest/hello
+++ after: /net/calsvm01/home/home/loqd/ansitest/roles/common/templates/hello.txt.j2
@@ -1 +1 @@
-THIS IS NOT THE TEMPLATE
+THIS IS THE TEMPLATE
changed: [localhost]
PLAY RECAP ********************************************************************
localhost : ok=2 changed=1 unreachable=0 failed=0
Here is my output (v2.0.0-0.4.beta2 git checkout):
PLAY ***************************************************************************