Optimize package module by passing all list instead of a loop

This commit is contained in:
Nemo 2020-07-11 16:11:13 +02:00
parent 591eda90e1
commit d4a11210ac

View file

@ -2,8 +2,8 @@
# Install tools task # Install tools task
- name: Tools installed - name: Tools installed
package: package:
name: "{{ item }}" name: "{{ tools_package }}"
state: present state: present
loop: "{{ tools_package }}" # loop: "{{ tools_package }}"
when: tools_package is defined and (tools_package|length>0) when: tools_package is defined and (tools_package|length>0)