lab-ansible/roles/apps/tasks/extra_tasks/nextcloud.yml

27 lines
703 B
YAML
Raw Permalink Normal View History

# vim: ft=yaml.ansible
# code: language=ansible
---
2023-12-27 23:07:21 +00:00
- name: Create subdirectory for Nextcloud Apache2 config
ansible.builtin.file:
path: "{{ apps_data_root }}/nextcloud/data/apache2"
owner: root
2024-01-30 18:15:51 +00:00
group: root
mode: u=rwx,g=rx,o=rx
state: directory
2023-12-27 23:07:21 +00:00
- name: Create subdirectory for Nextcloud data
ansible.builtin.file:
path: "{{ apps_data_root }}/nextcloud/data/app"
2023-12-28 21:39:11 +00:00
owner: '33'
2024-01-30 18:15:51 +00:00
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"
owner: root
2024-01-30 18:15:51 +00:00
group: root
mode: u=rw,g=r,o=r