Browse Source

auto install and enable the calendar and contacts nextcloud apps to enable CalDAV and CardDAV.

Thomas Buck 5 years ago
parent
commit
7a6f820678
1 changed files with 16 additions and 0 deletions
  1. 16
    0
      roles/nextcloud/tasks/nextcloud.yml

+ 16
- 0
roles/nextcloud/tasks/nextcloud.yml View File

87
     chdir: /var/www/nextcloud
87
     chdir: /var/www/nextcloud
88
     creates: /var/www/nextcloud/config/config.php
88
     creates: /var/www/nextcloud/config/config.php
89
 
89
 
90
+- name: Install NextCloud contacts app
91
+  become: true
92
+  become_user: www-data
93
+  command: php occ app:install contacts
94
+  args:
95
+    chdir: /var/www/nextcloud
96
+    creates: /var/www/nextcloud/apps/contacts/COPYING
97
+
98
+- name: Install NextCloud calendar app
99
+  become: true
100
+  become_user: www-data
101
+  command: php occ app:install calendar
102
+  args:
103
+    chdir: /var/www/nextcloud
104
+    creates: /var/www/nextcloud/apps/calendar/COPYING
105
+
90
 - name: Add our domains to the NextCloud trusted domains
106
 - name: Add our domains to the NextCloud trusted domains
91
   lineinfile:
107
   lineinfile:
92
     path: /var/www/nextcloud/config/config.php
108
     path: /var/www/nextcloud/config/config.php

Loading…
Cancel
Save