From bbea5a51bd2ed46d1a8b72d597957846c6845de1 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Sun, 15 Apr 2018 15:31:22 -0400 Subject: [PATCH] Pass list of packages directly to package task There is no need to loop over the list of packages, this is actually slower. Change-Id: I8ffb9038ae06ba476edfeed1aefc65319719f59f Signed-off-by: Paul Belanger --- tasks/install.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tasks/install.yaml b/tasks/install.yaml index 2ea6aaf..d49aa23 100644 --- a/tasks/install.yaml +++ b/tasks/install.yaml @@ -20,9 +20,8 @@ - name: Ensure dependencies are installed. become: yes package: - name: "{{ item }}" + name: "{{ statsd_build_depends }}" state: installed - with_items: "{{ statsd_build_depends }}" when: statsd_install_method == 'git' - include: "install/{{ statsd_install_method }}.yaml"