# How to configure audible not to use MD5?

**URL:** <https://forum.ansible.com/t/how-to-configure-audible-not-to-use-md5/26205>\
**Category:** Ansible Project\
**Created:** [December 5, 2017, 12:36pm UTC](https://forum.ansible.com/t/how-to-configure-audible-not-to-use-md5/26205 "2017-12-05T12:36:48Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Veena](https://avatars.discourse-cdn.com/v4/letter/v/51bf81/32.png) [@Veena](https://forum.ansible.com/u/Veena)\
**Post date:** [December 5, 2017, 12:36pm UTC](https://forum.ansible.com/t/how-to-configure-audible-not-to-use-md5/26205/1 "2017-12-05T12:36:48Z")

</div>

By default ansible uses MD5 for all the modules. I should run ansible on a node where MD5 is not allowed. I could find a way for “copy” and “stat” by giving get\_md5=no, but there’s no alternative or workaround for “template” module. Please suggest a way to use template without md5 or in general how to make sensible not use md5.

Thanks,  
-Veena

---

<div class="post-metadata">

**Author:** ![tkuratom](https://avatars.discourse-cdn.com/v4/letter/t/b19c9b/32.png) [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Post date:** [December 5, 2017, 2:38pm UTC](https://forum.ansible.com/t/how-to-configure-audible-not-to-use-md5/26205/2 "2017-12-05T14:38:15Z")

</div>

I’ll check that template uses the same rules as the copy and start modules not in general if md5 is disallowed on a not do (for instance, fips mode), the module simply won’t return an md5 hash. Are you seeing an error? What’s your use case?

-Toshio

---

<div class="post-metadata">

**Author:** ![tkuratom](https://avatars.discourse-cdn.com/v4/letter/t/b19c9b/32.png) [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Post date:** [December 5, 2017, 3:21pm UTC](https://forum.ansible.com/t/how-to-configure-audible-not-to-use-md5/26205/3 "2017-12-05T15:21:50Z")

</div>

Just confirmed that template uses the copy module under the covers.  
That means if md5 is disabled on the remote machine, then it will not  
return an md5 hash.

-Toshio

---

<div class="post-metadata">

**Author:** ![Veena](https://avatars.discourse-cdn.com/v4/letter/v/51bf81/32.png) [@Veena](https://forum.ansible.com/u/Veena)\
**Post date:** [December 5, 2017, 3:26pm UTC](https://forum.ansible.com/t/how-to-configure-audible-not-to-use-md5/26205/4 "2017-12-05T15:26:16Z")

</div>

Thanks for the reply Toshio.

I have replaced copy with “synchronize”. But there is no alternative for “template”. The use case is to run ansible tasks with FIPS enabled mode.

---

<div class="post-metadata">

**Author:** ![tkuratom](https://avatars.discourse-cdn.com/v4/letter/t/b19c9b/32.png) [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Post date:** [December 5, 2017, 3:28pm UTC](https://forum.ansible.com/t/how-to-configure-audible-not-to-use-md5/26205/5 "2017-12-05T15:28:38Z")

</div>

Template and copy will work just fine in FIPS mode. The md5 return  
value will just be empty. Try it 🙂

-Toshio

---

<div class="post-metadata">

**Author:** ![Veena](https://avatars.discourse-cdn.com/v4/letter/v/51bf81/32.png) [@Veena](https://forum.ansible.com/u/Veena)\
**Post date:** [December 5, 2017, 4:36pm UTC](https://forum.ansible.com/t/how-to-configure-audible-not-to-use-md5/26205/6 "2017-12-05T16:36:46Z")

</div>

The copy task fails and I get below error

fips\_md.c(147): OpenSSL internal error, assertion failed: Digest update previous FIPS forbidden algorithm error ignored\n

Thanks,  
-Veena

---

<div class="post-metadata">

**Author:** ![tkuratom](https://avatars.discourse-cdn.com/v4/letter/t/b19c9b/32.png) [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Post date:** [December 5, 2017, 5:00pm UTC](https://forum.ansible.com/t/how-to-configure-audible-not-to-use-md5/26205/7 "2017-12-05T17:00:21Z")

</div>

Okay, that's a bug that needs to be fixed. I need this information:

\* On what system? It looks like the way it fails is now different  
than on the system that we first made this work with FIPS mode on.  
&nbsp;&nbsp;\* How do you get that system into FIPS mode? (IIRC, we tested on  
RHEL5 or 6 and had to pass a kernel commandline parameter to enable  
FIPS mode)  
\* What's the complete traceback?

-Toshio

---

<div class="post-metadata">

**Author:** ![tkuratom](https://avatars.discourse-cdn.com/v4/letter/t/b19c9b/32.png) [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Post date:** [December 5, 2017, 6:49pm UTC](https://forum.ansible.com/t/how-to-configure-audible-not-to-use-md5/26205/8 "2017-12-05T18:49:30Z")

</div>

I've just tested FIPS mode on both centos6 and centos7 and copy works  
on both. Here's the output from one of my tests:  
ansible -m copy -a 'src=/etc/passwd dest=/tmp/test' rhel7-test -v

rhel7-test | SUCCESS =\> {  
&nbsp;&nbsp;&nbsp;&nbsp;"changed": true,  
&nbsp;&nbsp;&nbsp;&nbsp;"checksum": "e71a984d8559a386e52c0ef954f368513c398eee",  
&nbsp;&nbsp;&nbsp;&nbsp;"dest": "/tmp/test",  
&nbsp;&nbsp;&nbsp;&nbsp;"diff": ,  
&nbsp;&nbsp;&nbsp;&nbsp;"gid": 1000,  
&nbsp;&nbsp;&nbsp;&nbsp;"group": "badger",  
&nbsp;&nbsp;&nbsp;&nbsp;"invocation": {  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"module\_args": {  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"attributes": null,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"backup": false,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"content": null,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"delimiter": null,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"dest": "/tmp/test",  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"directory\_mode": null,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"follow": false,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"force": true,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"group": null,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"local\_follow": null,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"mode": null,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"original\_basename": "passwd",  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"owner": null,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"regexp": null,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"remote\_src": null,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"selevel": null,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"serole": null,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"setype": null,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"seuser": null,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"src":  
"/home/badger/.ansible/tmp/ansible-tmp-1512499612.07-236714811611664/source",  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"unsafe\_writes": null,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"validate": null  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}  
&nbsp;&nbsp;&nbsp;&nbsp;},  
&nbsp;&nbsp;&nbsp;&nbsp;"md5sum": null,  
&nbsp;&nbsp;&nbsp;&nbsp;"mode": "0664",  
&nbsp;&nbsp;&nbsp;&nbsp;"owner": "badger",  
&nbsp;&nbsp;&nbsp;&nbsp;"secontext": "unconfined\_u:object\_r:user\_home\_t:s0",  
&nbsp;&nbsp;&nbsp;&nbsp;"size": 5664,  
&nbsp;&nbsp;&nbsp;&nbsp;"src": "/home/badger/.ansible/tmp/ansible-tmp-1512499612.07-236714811611664/source",  
&nbsp;&nbsp;&nbsp;&nbsp;"state": "file",  
&nbsp;&nbsp;&nbsp;&nbsp;"uid": 1000  
}

No error and the md5sum field is null.

So I will need the details I asked for to figure out how to reproduce  
this and how to fix it.

Thanks,  
-Toshio
