summaryrefslogtreecommitdiff
path: root/roles/elevate/media/tasks/nextcloud.yml
blob: 306148df6d0ae1dbd6949f4c32df109e1514d381 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
---
## TODO: convert to new apps/nexctloud/instance role once this is done!
- name: basic nextcloud config
  import_tasks: nextcloud-app.yml

# - name: basic nextcloud config
#   import_tasks: nextcloud-config.yml

- name: install systemd service/timer unit for files:rescan
  loop:
  - service
  - timer
  template:
    src: "nextcloud-rescan-.{{ item }}.j2"
    dest: "/etc/systemd/system/nextcloud-rescan-{{ elevate_media_nextcloud_instance_name }}.{{ item }}"

- name: make sure nextcloud rescan systemd timer are started and enabled
  systemd:
    daemon_reload: yes
    name: "nextcloud-rescan-{{ elevate_media_nextcloud_instance_name }}.timer"
    state: started
    enabled: yes