2023-10-31 21:06:25 +00:00
|
|
|
# vim: ft=yaml.ansible
|
|
|
|
# code: language=ansible
|
|
|
|
---
|
|
|
|
- name: Create subfolder for Nextcloud Apache2 config
|
|
|
|
ansible.builtin.file:
|
2023-11-05 17:27:49 +00:00
|
|
|
name: "{{ apps_data_root }}/nextcloud/data/apache2"
|
2023-10-31 21:06:25 +00:00
|
|
|
owner: root
|
|
|
|
mode: u=rwx,g=rx,o=rx
|
|
|
|
state: directory
|
|
|
|
|
2023-11-03 22:38:15 +00:00
|
|
|
- name: Create subfolder for Nextcloud data
|
2023-10-31 21:06:25 +00:00
|
|
|
ansible.builtin.file:
|
2023-11-05 17:27:49 +00:00
|
|
|
name: "{{ apps_data_root }}/nextcloud/data/app"
|
2023-10-31 21:06:25 +00:00
|
|
|
owner: root
|
|
|
|
group: '33'
|
|
|
|
mode: u=rwx,g=rx,o=rx
|
|
|
|
state: directory
|
|
|
|
|
|
|
|
- name: Copy Apache2 remoteip config file
|
|
|
|
ansible.builtin.template:
|
|
|
|
src: nextcloud/remoteip.conf.j2
|
2023-11-05 17:27:49 +00:00
|
|
|
dest: "{{ apps_data_root }}/nextcloud/data/apache2/remoteip.conf"
|
2023-10-31 21:06:25 +00:00
|
|
|
owner: root
|
|
|
|
mode: u=rw,g=r,o=r
|