mpdehaan/ansible — Issue #12: Bug:  don't write file if md5sum won't change
Author: mpdehaan
Created: 2012-02-25 18:48:28+00:00
State: open

The templating module will always run the template on the file, don't run it if the md5sum won't change, and don't clobber the file if the template is going to fail

Copy should also avoid transfer if the md5sum is not different. notice that execing md5sum also includes the filename so we can't just call os.Popen("md5sum ").read(), also need .split()[0]