From 40b7bd543ebf9eb83deb7a6068959541bbe1f682 Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Fri, 7 Sep 2018 15:41:55 -0500 Subject: [PATCH] Fixes #253: Speed up PHP package installation by not using with_items. --- tasks/setup-Debian.yml | 3 +-- tasks/setup-RedHat.yml | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/tasks/setup-Debian.yml b/tasks/setup-Debian.yml index 3b3d6d3..1740204 100644 --- a/tasks/setup-Debian.yml +++ b/tasks/setup-Debian.yml @@ -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 diff --git a/tasks/setup-RedHat.yml b/tasks/setup-RedHat.yml index a51e1e7..68ca931 100644 --- a/tasks/setup-RedHat.yml +++ b/tasks/setup-RedHat.yml @@ -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