From 61f3206d6c5df22e5bcdc093848a7e83419fb45e Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen@paragon-es.de>
Date: Mon, 22 Oct 2018 12:49:18 +0200
Subject: [PATCH] Change module apt with multiple packages to remove deprecated
 syntax

---
 tasks/install.yml | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/tasks/install.yml b/tasks/install.yml
index add9a5d..a17b0df 100644
--- a/tasks/install.yml
+++ b/tasks/install.yml
@@ -11,12 +11,13 @@
 
 - name: "Install some packages"
   apt:
-    pkg='{{ item }}'
+    pkg='{{ packages }}'
     state=latest
-  with_items:
-    - haproxy
-    - hatop
-    - socat
+  vars:
+    packages:
+      - haproxy
+      - hatop
+      - socat
 
 - name: "create directories"
   file:
-- 
GitLab