Playbooks to a new Lilik
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

29 lines
585 B

- 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 }}'
state: directory
mode: 0755
owner: www-data
group: www-data
recurse: yes
with_items: '{{ webdav_folders }} + ["temp"]'
- name: touch htpasswd file
file:
path: '{{ item }}'
state: touch
mode: 0640
owner: www-data
group: www-data
with_items:
- /etc/nginx/media_htpasswd
changed_when: False