浏览代码

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

Thomas Buck 5 年前
父节点
当前提交
7a6f820678
共有 1 个文件被更改,包括 16 次插入0 次删除
  1. 16
    0
      roles/nextcloud/tasks/nextcloud.yml

+ 16
- 0
roles/nextcloud/tasks/nextcloud.yml 查看文件

@@ -87,6 +87,22 @@
87 87
     chdir: /var/www/nextcloud
88 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 106
 - name: Add our domains to the NextCloud trusted domains
91 107
   lineinfile:
92 108
     path: /var/www/nextcloud/config/config.php

正在加载...
取消
保存