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.
--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/8a90cb4c-5375-47ba-acd7-d6be245336f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.