Skip to content

Instantly share code, notes, and snippets.

@simensen
Created April 17, 2014 01:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simensen/b121eba782ae7d24fa2d to your computer and use it in GitHub Desktop.
Save simensen/b121eba782ae7d24fa2d to your computer and use it in GitHub Desktop.
- name: ensure application directories exist
file: path={{ item }} owner={{ deploy_user }} group={{ deploy_user }} state=directory
with_items:
- "{{ versions_root }}"
- "{{ project_root }}"
- "{{ logs_root }}"
- "{{ releases_root }}"
notify:
- setup application acl
- name: setup application acl
acl: name={{ logs_root }} entity={{ item }} etype=user permissions="rwx" state=present default=true
with_items:
- "{{ deploy_user }}"
- "www-data"
- name: setup application acl
acl: name={{ logs_root }} entity={{ item }} etype=user permissions="rwx" state=present
with_items:
- "{{ deploy_user }}"
- "www-data"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment