From 87962c09d575a879dc108a5e3d22eb3cd9af3646 Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen@paragon-es.de>
Date: Mon, 10 Jun 2019 20:20:37 +0200
Subject: [PATCH] ansible-playbooks/general#85 Linting [skip-ci]

---
 tasks/apache.yml | 24 +++++++++++++-----------
 1 file changed, 13 insertions(+), 11 deletions(-)

diff --git a/tasks/apache.yml b/tasks/apache.yml
index 096c155..84cbc57 100644
--- a/tasks/apache.yml
+++ b/tasks/apache.yml
@@ -6,25 +6,27 @@
 
 - name: Apache Modules
   apache2_module:
-    state='present'
-    name='{{ item }}'
+    state: present
+    name: '{{ item }}'
   with_items:
     - proxy
     - proxy_http
   notify:
-    - "Apache | Restart Apache"
+    - "Restart Apache"
 
 - name: Apache Configuration File
   template:
-    src='vhost.conf'
-    dest='/etc/apache2/sites-available/zammad_{{ domain.id }}{{ apache_conf_ext }}'
-    owner='root'
-    group='root'
-    mode='664'
+    src: vhost.conf
+    dest: /etc/apache2/sites-available/zammad_{{ domain.id }}{{ apache_conf_ext }}
+    owner: root
+    group: root
+    mode: 0664
   notify:
-    - "Apache | Restart Apache"
+    - "Restart Apache"
 
 - name: Apache enable site
-  command: a2ensite zammad_{{ domain.id }} creates=/etc/apache2/sites-enabled/zammad_{{ domain.id }}{{ apache_conf_ext }}
+  command: a2ensite zammad_{{ domain.id }}
+  args:
+    creates: /etc/apache2/sites-enabled/zammad_{{ domain.id }}{{ apache_conf_ext }}
   notify:
-    - "Apache | Restart Apache"
+    - "Restart Apache"
-- 
GitLab