summaryrefslogtreecommitdiff
path: root/roles/apps/nextcloud/base/tasks/main.yml
blob: 4c85a35c593448a82c6f6893799e174239131338 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
- name: add group for nextcloud app
  group:
    name: nc-app
    gid: "{{ nextcloud_app_gid }}"

- name: add user for nextcloud app
  user:
    name: nc-app
    uid: "{{ nextcloud_app_uid }}"
    group: nc-app
    password: "!"

- name: add group for nextcloud db
  group:
    name: nc-db
    gid: "{{ nextcloud_db_gid }}"

- name: add user for nextcloud db
  user:
    name: nc-db
    uid: "{{ nextcloud_db_uid }}"
    group: nc-db
    password: "!"

- name: add group for nextcloud redis
  group:
    name: nc-redis
    gid: "{{ nextcloud_redis_gid }}"

- name: add user for nextcloud redis
  user:
    name: nc-redis
    uid: "{{ nextcloud_redis_uid }}"
    group: nc-redis
    password: "!"

- name: install template systemd unit for cron trigger
  template:
    src: cron@.service.j2
    dest: /etc/systemd/system/nextcloud-cron@.service

- name: install management scripts
  loop:
  - nextcloud-upgrade
  - nextcloud-occ
  - nextcloud-cron
  template:
    src: "{{ item }}.j2"
    dest: "/usr/local/bin/{{ item }}"
    mode: 0755