infrastructure/k8s/roles/nextcloud/tasks/main.yml

39 lines
1 KiB
YAML
Raw Permalink Normal View History

2023-07-13 06:36:57 +00:00
---
- name: Create NextCloud namespace
kubernetes.core.k8s:
name: nextcloud
api_version: v1
kind: Namespace
state: present
definition:
metadata:
labels:
prometheus: default
- name: Add KeyDB chart repo
kubernetes.core.helm_repository:
name: enapter
repo_url: https://enapter.github.io/charts/
- name: Add NextCloud chart repo
kubernetes.core.helm_repository:
name: nextcloud
repo_url: https://nextcloud.github.io/helm/
- name: Deploy KeyDB chart
kubernetes.core.helm:
name: nextcloud-keydb
chart_ref: enapter/keydb
release_namespace: nextcloud
chart_version: "0.48.0"
update_repo_cache: true
release_values: "{{ lookup('template', 'values.nextcloud-keydb.yml.j2') | from_yaml }}"
- name: Deploy NextCloud chart
kubernetes.core.helm:
name: nextcloud
chart_ref: nextcloud/nextcloud
release_namespace: nextcloud
chart_version: "4.4.0"
2023-07-13 06:36:57 +00:00
update_repo_cache: true
release_values: "{{ lookup('template', 'values.nextcloud.yml.j2') | from_yaml }}"