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

39 lines
934 B
YAML
Raw Normal View History

2022-09-11 16:49:31 +00:00
---
- name: Create gitea namespace
kubernetes.core.k8s:
name: gitea
api_version: v1
kind: Namespace
state: present
definition:
metadata:
labels:
prometheus: default
2022-09-11 16:49:31 +00:00
- name: Create Gitea admin credentials
kubernetes.core.k8s:
state: present
definition:
apiVersion: v1
kind: Secret
metadata:
name: gitea-admin-credentials
namespace: gitea
data:
username: "{{ gitea.adminUser | b64encode }}"
password: "{{ gitea.adminPassword | b64encode }}"
- name: Add Gitea chart repo
kubernetes.core.helm_repository:
name: gitea
repo_url: https://dl.gitea.io/charts/
- name: Deploy Gitea chart
kubernetes.core.helm:
name: gitea
chart_ref: gitea/gitea
release_namespace: gitea
2022-11-15 19:38:29 +00:00
chart_version: 6.0.3
2022-09-29 18:51:26 +00:00
update_repo_cache: true
2022-09-11 16:49:31 +00:00
release_values: "{{ lookup('template', 'values.gitea.yml.j2') | from_yaml }}"