Setup Nextcloud again

This commit is contained in:
2023-03-24 20:07:52 -04:00
parent 2d770a9fcd
commit f7ee670da6
7 changed files with 27 additions and 24 deletions

View File

@@ -8,23 +8,23 @@
name: "{{apps.nextcloud.namespace}}"
api_version: v1
kind: Namespace
state: "{{apps.nextcloud.state}}"
state: "{{present}}"
become: true
- name: create persistent volume resources
kubernetes.core.k8s:
kubeconfig: "/etc/rancher/k3s/k3s.yaml"
state: "{{apps.nextcloud.state}}"
state: "present"
definition: "{{ lookup('template', item) | from_yaml }}"
loop:
- nextcloud/pv-apps.yaml
- nextcloud/pv-data.yaml
- nextcloud/pv-configs.yaml
# - nextcloud/pv-apps.yaml
# - nextcloud/pv-data.yaml
# - nextcloud/pv-configs.yaml
- nextcloud/pv-main.yaml
- nextcloud/pv-apps-claim.yaml
- nextcloud/pv-data-claim.yaml
- nextcloud/pv-configs-claim.yaml
# - nextcloud/pv-apps-claim.yaml
# - nextcloud/pv-data-claim.yaml
# - nextcloud/pv-configs-claim.yaml
- nextcloud/pv-main-claim.yaml
become: true
@@ -44,7 +44,7 @@
- name: Install Nextcloud Release
local_action:
module: kubernetes.core.helm
release_state: "{{apps.nextcloud.state}}"
release_state: "present"
name: nextcloud
namespace: "{{apps.nextcloud.namespace}}"
create_namespace: yes