---
- name: Touch log file if it does not exist
  command: touch {{ app_log }}
           creates={{ app_log }}

- name: Set log file permissions
  file: path={{ app_log }} owner=nyc-trees group=nyc-trees mode=0644

- name: Configure Gunicorn log rotation
  template: src=logrotate-nyc-trees-app.j2 dest=/etc/logrotate.d/nyc-trees-app

---
- name: Touch log file if it does not exist
  command: touch {{ app_log }}
           creates={{ app_log }}

- name: Set log file permissions
  file: path={{ app_log }} owner=nyc-trees group=nyc-trees mode=0664

- name: Configure Gunicorn log rotation
  template: src=logrotate-nyc-trees-app.j2 dest=/etc/logrotate.d/nyc-trees-app

Make application log writable by owning group
Make application log writable by owning group

This changeset give the `nyc-trees` write permission to the application
log file. Originally this was disabled because it was presumed that only
the application service account would be writing logs. This isn't the
case during local development (`vagrant` user).

Resolves: #254
