]> arthur.barton.de Git - AnsibleRoles.git/blobdiff - roles/apache2-php7/tasks/main.yml
Update "apt" tasks to use lists
[AnsibleRoles.git] / roles / apache2-php7 / tasks / main.yml
index 62a2c678866d7fee403a308a297c01f43290732d..145066b874acd30ffcb29e18d495c3e190d22a89 100644 (file)
@@ -5,15 +5,15 @@
   tags:
     - apache
     - packages
-  apt: >
-    state=present
-    name={{ item }}
-  with_items:
-    - libapache2-mod-php
-    - php
-    - php-cli
-    - php-mysql
-    - php-pgsql
+  apt:
+    statepresent
+    name: [
+      'libapache2-mod-php',
+      'php',
+      'php-cli',
+      'php-mysql',
+      'php-pgsql',
+    ]
   notify:
     - restart "apache2"