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
|
# 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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue