TP-IaC-Kubernetes/roles/gitea-helm/tasks/main.yaml

27 lines
677 B
YAML

# To get the default file
# helm show values gitea-charts/gitea > values.yaml
- name: Get values
template:
src: values.yaml.j2
dest: /tmp/values.yaml
# TODO: Add a wait_for condition to test if ingress-nginx avalaible
- name: install gitea via helm
shell: |
helm repo add gitea-charts https://dl.gitea.io/charts/
helm repo update
helm install -f /tmp/values.yaml gitea gitea-charts/gitea
- name: Attente du démarrage de Gitea
retries: 6
wait_for:
host: "{{ gitea.externalips }}"
port: 3000
delay: 10
state: present
- name:
debug:
msg: Le serveur Gitea est operationel est joignable sur http://{{ gitea.externalips }}:3000