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 => {
"changed": true,
"checksum": "e71a984d8559a386e52c0ef954f368513c398eee",
"dest": "/tmp/test",
"diff": ,
"gid": 1000,
"group": "badger",
"invocation": {
"module_args": {
"attributes": null,
"backup": false,
"content": null,
"delimiter": null,
"dest": "/tmp/test",
"directory_mode": null,
"follow": false,
"force": true,
"group": null,
"local_follow": null,
"mode": null,
"original_basename": "passwd",
"owner": null,
"regexp": null,
"remote_src": null,
"selevel": null,
"serole": null,
"setype": null,
"seuser": null,
"src":
"/home/badger/.ansible/tmp/ansible-tmp-1512499612.07-236714811611664/source",
"unsafe_writes": null,
"validate": null
}
},
"md5sum": null,
"mode": "0664",
"owner": "badger",
"secontext": "unconfined_u:object_r:user_home_t:s0",
"size": 5664,
"src": "/home/badger/.ansible/tmp/ansible-tmp-1512499612.07-236714811611664/source",
"state": "file",
"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