mirror of
https://github.com/geerlingguy/ansible-role-php.git
synced 2025-01-09 19:27:34 +01:00
Fixes #253: Speed up PHP package installation by not using with_items.
This commit is contained in:
parent
c8645074a6
commit
40b7bd543e
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user