]> git.phdru.name Git - ansible.git/blobdiff - playbooks/debian/roles/add_apache_vhost/tasks/main.yml
Feat(install-dehydrated): Install `dehydrated`
[ansible.git] / playbooks / debian / roles / add_apache_vhost / tasks / main.yml
index d5f9ddd72a36b4a18a2d635f82f144dc79d5d2e7..0c9567558ceeff6df9e3b3d25697655506e35260 100644 (file)
   notify: Reload apache
   when: vhost.rc != 0
 
-- name: Create log directory
+- name: Create directories
   become: true
   file:
-    path: /var/log/apache2/{{ virtual_host }}
+    path: "{{ item }}/{{ virtual_host }}"
     state: directory
     owner: root
-    group: root
-    mode: '0640'
+    group: www-data
+    mode: '0755'
+  loop: ['/usr/local/apache2/cgi-bin', '/usr/local/apache2/htdocs',
+         '/var/log/apache2',
+        ]
   when: vhost.rc != 0