Templates don't get --check'ed right in v2

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”.

Has anyone else run into this?

--diff is needed to show the differences

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.

actuall, OK means 'no change', it should only show a diff if it
returns 'Changed'

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.

is the diff a trailing newline?

No the files are quite different

i cannot reproduce with my own tests, do you have a minimal test case?

I have attached a playbook that I can reproduce the results with.

When I run that like this:
ansible-playbook -c local -i “localhost,” site.yml --check --diff

Here is my output (1.9.4):

PLAY [all] ********************************************************************

GATHERING FACTS ***************************************************************

ok: [localhost]

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 ***************************************************************************

TASK [setup] *******************************************************************
ok: [localhost]

TASK [common : Template test] **************************************************
ok: [localhost]

PLAY RECAP *********************************************************************
localhost : ok=2 changed=0 unreachable=0 failed=0

(attachments)

ansitest.zip (1.74 KB)

so diff seems to be working fine, its the check mode that is the problem