yum module - conf_file parameter

381 views
Skip to first unread message

Jacob Seeley

unread,
Apr 23, 2014, 8:47:59 PM4/23/14
to ansible...@googlegroups.com
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:

- name: Remove java
   yum: name=@java-platform conf_file=http://somehost/yum.conf state=absent

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?

Jacob Seeley

unread,
Apr 23, 2014, 9:59:30 PM4/23/14
to ansible...@googlegroups.com
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.

Michael DeHaan

unread,
Apr 24, 2014, 10:45:15 AM4/24/14
to ansible...@googlegroups.com
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


--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/cf64e51f-b465-419a-9c21-7d62eb4313a0%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages