--- - name: Create gitea namespace kubernetes.core.k8s: name: gitea api_version: v1 kind: Namespace state: present definition: metadata: labels: prometheus: default - 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 chart_version: 6.0.5 update_repo_cache: true release_values: "{{ lookup('template', 'values.gitea.yml.j2') | from_yaml }}"