Optimize package module by passing all list instead of a loop
This commit is contained in:
parent
591eda90e1
commit
d4a11210ac
|
@ -2,8 +2,8 @@
|
|||
# Install tools task
|
||||
- name: Tools installed
|
||||
package:
|
||||
name: "{{ item }}"
|
||||
name: "{{ tools_package }}"
|
||||
state: present
|
||||
loop: "{{ tools_package }}"
|
||||
# loop: "{{ tools_package }}"
|
||||
when: tools_package is defined and (tools_package|length>0)
|
||||
|
||||
|
|
Loading…
Reference in a new issue