Issue with Ansible 1.4.1 using --check and --diff together with the "template" module

Just noticed an issue with ansible 1.4.1 trying to deploy a networking configuration for dhcp. Will paste configs below with hostnames changed:

Playbook:

playbook.yml

It’s not even that they are switched so much that the after value should still be the same filename, as it’s a before and after at the same point in time.

This is definitely a bug.

If you’re seeing this on 1.4.X or later, please file a ticket on github so we can fix the before and after captions.

Thank you! Filed as issue Issue #5575 on GitHub.

Matt