yum module - remove repoquery hard dependency (for speed optimization)

41 views
Skip to first unread message

Stefan Eriksson

unread,
Aug 14, 2015, 8:34:00 AM8/14/15
to Ansible Project
In the yum module, remove hard dependency for repoquery. (for speed optimization)

Run:

- name: verify sudo,ntp,iotop is latest
  action: yum name={{ item }} state=latest
  with_items:
   - sudo
   - ntp
   - iotop
  when: ansible_os_family == "RedHat"

and then run the same with regular yum install sudo ntp iotop
It would be very nice actually get this task completed much faster.

Actual Results:

Yum now takes a very long time and its because of repoquery depenency, there has been various people asking why this is,

some resolve it by running yum from command: module.
Others create an alternative module: http://blog.grozak.com/2014/04/04/01-yum2-ansible-module/ (the reason as described in the blogpost, speed)
http://grokbase.com/t/gg/ansible-project/1486ckhr51/speed-up-yum-related-tasks here Michael suggested he's changed his mind about requiring repoquery, and that its worth revisiting.
For me managing 100 servers all with yum module, a run takes almost 2hours to complete, and 90% of the time spent is with the yum module.
Reply all
Reply to author
Forward
0 new messages