-- name: Enable site
- become: true
- command: "a2ensite {{ virtual_host }}"
- notify: Reload apache
- when: vhost.rc != 0
-
-- name: Create log directory
- become: true
- file:
- path: /var/log/apache2/{{ virtual_host }}
- state: directory
- owner: root
- group: root
- mode: '0640'