yum module - conf_file parameter

Hello,

I’m trying to use the conf_file parameter to the yum module and it does not appear to be working. My playbook is as follows:

What I would expect to happen is the yum module to grab a copy of yum.conf from the URL listed. However, the file is never retrieved. I can verify this through 1. the web logs of the server hosting yum.onf (no logs showing yum.conf being downloaded) and 2. The option I have set in yum.conf is not being applied when the above playbook is executed.

Any idea why this isn’t working?

After some more testing, I’ve found the parameter conf_file works when the file is on the server the playbook is being run against.

Yep yep, in general most modules in ansible don’t perform automatic remote file transfer.

“unarchive” is one module that does, and naturally “template” and “copy” do. But most require a reference to a local file.

–Michael