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
1 changed files with 2 additions and 2 deletions

View File

@ -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)