Ansible supports lists passed to package install.
With this we can avoid using with_items since this makes
multiple calls to the packages manager slowing down
the performance.
Change-Id: Ieb09ed634533bcbbc60275aafd2c22b3d5c4086d
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
---
- name: Install base packages
apt:
- name: '{{pkg}}'
+ name:
+ - build-essential
+ - devscripts
+ - dh-systemd
+ - equivs
+ - gdebi
state: latest
- with_items:
- - build-essential
- - devscripts
- - dh-systemd
- - equivs
- - gdebi
- loop_control:
- loop_var: pkg
become: yes
--- /dev/null
+---
+fixes:
+ - |
+ Ansible supports lists passed to package install that can avoid using
+ with_items. Using with_items makes multiple calls to the packages manager
+ slowing down the performance.