Browse Source

fix media folder permission

python3
Andrea Cimbalo 7 years ago
parent
commit
9bd46bdd36
3 changed files with 14 additions and 3 deletions
  1. +1
    -1
      media.yaml
  2. +4
    -2
      roles/nginx/tasks/main.yaml
  3. +9
    -0
      roles/webdav/tasks/main.yaml

+ 1
- 1
media.yaml View File

@ -1,4 +1,4 @@
- hosts: biff
- hosts: emmett
roles:
- role: lxc_guest
vm_name: media


+ 4
- 2
roles/nginx/tasks/main.yaml View File

@ -36,12 +36,14 @@
- name: create nginx location configuration directory
file:
path: '/etc/nginx/locations/{{ server_fqdn }}/'
path: '{{ item }}'
state: directory
mode: 0755
owner: www-data
group: www-data
recurse: yes
with_items:
- /etc/nginx/locations/
- '/etc/nginx/locations/{{ server_fqdn }}/'
- name: upload nginx configuration
template:


+ 9
- 0
roles/webdav/tasks/main.yaml View File

@ -1,3 +1,12 @@
- name: install utilities
apt:
name: "{{ item }}"
state: present
update_cache: yes
cache_valid_time: 3600
with_items:
- apache2-utils
- name: create directories to serve
file:
path: '{{ server_path }}/{{ item }}'


Loading…
Cancel
Save