cloud-environments-example/roles/nextcloud/tasks/main.yml
2023-08-20 11:13:16 +02:00

47 lines
980 B
YAML
Executable File

---
- name: setup nextcloud group
group:
name: "{{ ncgrp }}"
state: "present"
- name: setup nextcloud user
user:
name: "{{ ncusr }}"
group: "{{ ncgrp }}"
groups:
- "{{ ncgrp }}"
comment: Virtual Nextcloud User
shell: /sbin/nologin
state: present
- name: setup nextcloud storage folder
file:
path: "{{ ncloud_data_location }}"
state: directory
owner: "{{ www_group }}"
group: "{{ ncgrp }}"
mode: "o="
- name: install nextcloud recommendations
apt:
update_cache: yes
state: "{% if cloud_update | bool %}latest{% else %}present{% endif %}"
install_recommends: yes
pkg:
- "libxml2"
- "openssl"
- "ffmpeg"
- "libreoffice"
- "redis-server"
- "unzip"
- name: install basic nextcloud
include_tasks: nextcloud.yml
- name: install notify_push (file high-performance-backend)
include_tasks: file_hpb.yml
- name: install coturn server
include_tasks: coturn.yml