mirror of https://github.com/ceph/ceph-ansible.git
Pass list of packages instead of with_items
Modern versions of Ansible can handle a list of packages passed directly to the package modules. This patch optimizes the package install process by passing the list of packages directly to the module.pull/2030/head
parent
b561252da8
commit
9d62630303
|
@ -1,17 +1,15 @@
|
|||
---
|
||||
- name: install redhat dependencies
|
||||
package:
|
||||
name: "{{ item }}"
|
||||
name: "{{ redhat_package_dependencies }}"
|
||||
state: present
|
||||
with_items: "{{ redhat_package_dependencies }}"
|
||||
when:
|
||||
- ansible_distribution == 'RedHat'
|
||||
|
||||
- name: install centos dependencies
|
||||
yum:
|
||||
name: "{{ item }}"
|
||||
name: "{{ centos_package_dependencies }}"
|
||||
state: present
|
||||
with_items: "{{ centos_package_dependencies }}"
|
||||
when:
|
||||
- ansible_distribution == 'CentOS'
|
||||
|
||||
|
|
Loading…
Reference in New Issue