Pass list of packages directly to package task
There is no need to loop over the list of packages, this is actually slower. Change-Id: I0efdfbe3ba066ccab4bf3e3ff661bcba088984e1 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
8a55c99ca1
commit
85a9f3b5b9
@ -20,9 +20,8 @@
|
|||||||
- name: Ensure build dependencies are installed.
|
- name: Ensure build dependencies are installed.
|
||||||
become: yes
|
become: yes
|
||||||
package:
|
package:
|
||||||
name: "{{ item }}"
|
name: "{{ shade_build_depends }}"
|
||||||
state: installed
|
state: installed
|
||||||
with_items: "{{ shade_build_depends }}"
|
|
||||||
when: shade_install_method == 'git' or shade_install_method == 'pip'
|
when: shade_install_method == 'git' or shade_install_method == 'pip'
|
||||||
|
|
||||||
- name: Define shade_pip_executable if needed.
|
- name: Define shade_pip_executable if needed.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user