You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hetzner-ansible/roles/kubernetes/bootstrap/tasks/main.yml

46 lines
1022 B
YAML

---
- name: Setup gitea Secret
become: yes
kubernetes.core.k8s:
state: present
template: 'gitea-secret.j2'
when:
- argocd_bootstrap_infrastructure
- inventory_hostname == groups['kube_control_plane'][0]
tags:
- argo-cd
- name: Setup Harbor Secret
become: yes
kubernetes.core.k8s:
state: present
template: 'harbor-secret.j2'
when:
- argocd_bootstrap_infrastructure
- inventory_hostname == groups['kube_control_plane'][0]
tags:
- argo-cd
- name: Setup argocd application for bootstrap
become: yes
kubernetes.core.k8s:
state: present
template: 'bootstrap-application.j2'
when:
- argocd_bootstrap_infrastructure
- inventory_hostname == groups['kube_control_plane'][0]
tags:
- argo-cd
- name: Setup argocd infrastructure project
become: yes
kubernetes.core.k8s:
state: present
template: 'project-infrastructure.j2'
when:
- argocd_bootstrap_infrastructure
- inventory_hostname == groups['kube_control_plane'][0]
tags:
- argo-cd