diff --git a/media.yaml b/media.yaml index 153bc7e..d0292ca 100644 --- a/media.yaml +++ b/media.yaml @@ -1,4 +1,4 @@ -- hosts: biff +- hosts: emmett roles: - role: lxc_guest vm_name: media diff --git a/roles/nginx/tasks/main.yaml b/roles/nginx/tasks/main.yaml index ab6ede5..a2e8764 100644 --- a/roles/nginx/tasks/main.yaml +++ b/roles/nginx/tasks/main.yaml @@ -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: diff --git a/roles/webdav/tasks/main.yaml b/roles/webdav/tasks/main.yaml index bf6aefa..7a1be5d 100644 --- a/roles/webdav/tasks/main.yaml +++ b/roles/webdav/tasks/main.yaml @@ -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 }}'