Improve package-install speed for default config
The ``ansible.conf`` file has an option for ``squash_actions`` which affects the package module. It improves performance by bypassing the normal ``with_items`` loop so all the items are installed at once. This vastly improves performance. However (sadly) current origin-ci does not utilize the ``ansible.conf`` file in the repo. Work around this by forming all required packages into a CSV list. Same effect, less magic, and it doesn't depend on any ``ansible.conf`` setting. Signed-off-by: Chris Evich <cevich@redhat.com>
This commit is contained in:
parent
a1129fb651
commit
0f4019b490
1 changed files with 54 additions and 51 deletions
|
@ -1,10 +1,8 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: Make sure we have all required packages
|
- name: Required packages are buffered so package module can install all at once
|
||||||
package:
|
set_fact:
|
||||||
name: "{{ item }}"
|
required_packages:
|
||||||
state: present
|
|
||||||
with_items:
|
|
||||||
- container-selinux
|
- container-selinux
|
||||||
- curl
|
- curl
|
||||||
- device-mapper-devel
|
- device-mapper-devel
|
||||||
|
@ -54,6 +52,11 @@
|
||||||
- socat
|
- socat
|
||||||
- tar
|
- tar
|
||||||
- wget
|
- wget
|
||||||
|
|
||||||
|
- name: Make sure we have all required packages
|
||||||
|
package:
|
||||||
|
name: "{{ required_packages | join(', ') }}"
|
||||||
|
state: present
|
||||||
async: 600
|
async: 600
|
||||||
poll: 10
|
poll: 10
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue