From ae51f2842047422b0d0c62b6b9e47ec510d63da4 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Thu, 6 Nov 2014 21:26:52 -0800 Subject: [PATCH] Move from md5 to sha1 to work on fips-140 enabled systems --- lib/ansible/modules/extras/web_infrastructure/jboss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/web_infrastructure/jboss.py b/lib/ansible/modules/extras/web_infrastructure/jboss.py index 9478235698..65b44d2304 100644 --- a/lib/ansible/modules/extras/web_infrastructure/jboss.py +++ b/lib/ansible/modules/extras/web_infrastructure/jboss.py @@ -113,7 +113,7 @@ def main(): changed = True if state == 'present' and deployed: - if module.md5(src) != module.md5(os.path.join(deploy_path, deployment)): + if module.sha1(src) != module.sha1(os.path.join(deploy_path, deployment)): os.remove(os.path.join(deploy_path, "%s.deployed"%(deployment))) shutil.copyfile(src, os.path.join(deploy_path, deployment)) deployed = False