aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--playbooks/st0cld0.rgoncalves.se.yml7
-rw-r--r--roles/nextcloud/meta/main.yml15
2 files changed, 13 insertions, 9 deletions
diff --git a/playbooks/st0cld0.rgoncalves.se.yml b/playbooks/st0cld0.rgoncalves.se.yml
index 0ecfc16..2286395 100644
--- a/playbooks/st0cld0.rgoncalves.se.yml
+++ b/playbooks/st0cld0.rgoncalves.se.yml
@@ -6,13 +6,6 @@
- hosts: st0cld0
roles:
-
- - role: nfsclient
- vars:
- nfsclient_dir: "/var/www/nextcloud"
- nfsclient_server_dir: "{{ global.nfs_server_dir }}/{{ ansible_host }}/nextcloud"
- tags: never role_nfsclient
-
- { role: nextcloud, tags: "role_nextcloud" }
- { role: miniflux, tags: "role_miniflux" }
- { role: syncthing, tags: "role_syncthing" }
diff --git a/roles/nextcloud/meta/main.yml b/roles/nextcloud/meta/main.yml
index 9a6c3ec..30e27f3 100644
--- a/roles/nextcloud/meta/main.yml
+++ b/roles/nextcloud/meta/main.yml
@@ -5,8 +5,19 @@
---
dependencies:
+ - role: nfsclient
+ vars:
+ nfsclient_dir: "/var/www/nextcloud/data"
+ nfsclient_server_dir: "{{ global.nfs_server_dir }}/{{ ansible_host }}/nextcloud"
+ when: ansible_distribution == "OpenBSD"
+ tags: "dependency"
+
- role: httpd_pre
tags: "dependency"
when: ansible_distribution == "OpenBSD"
- - { role: postgres, tags: "dependency" }
- - { role: redis, tags: "dependency" }
+
+ - role: postgres
+ tags: "dependency"
+
+ - role: redis
+ tags: "dependency"
remember that computers suck.