Fixes #253: Speed up PHP package installation by not using with_items.

This commit is contained in:
Jeff Geerling 2018-09-07 15:41:55 -05:00
parent c8645074a6
commit 40b7bd543e
2 changed files with 2 additions and 4 deletions

View File

@ -4,10 +4,9 @@
- name: Ensure PHP packages are installed.
apt:
name: "{{ item }}"
name: "{{ php_packages }}"
state: "{{ php_packages_state }}"
install_recommends: "{{ php_install_recommends }}"
with_items: "{{ php_packages }}"
register: php_package_install
notify: restart webserver

View File

@ -1,8 +1,7 @@
---
- name: Ensure PHP packages are installed.
package:
name: "{{ item }}"
name: "{{ php_packages }}"
state: "{{ php_packages_state }}"
enablerepo: "{{ php_enablerepo }}"
with_items: "{{ php_packages }}"
notify: restart webserver