22 lines
628 B
YAML
22 lines
628 B
YAML
---
|
|
- name: Add ArgoCD Helm repository
|
|
command: /snap/bin/helm repo add argo https://argoproj.github.io/argo-helm
|
|
become: false
|
|
changed_when: false
|
|
|
|
- name: Update Helm repositories
|
|
command: /snap/bin/helm repo update
|
|
become: false
|
|
changed_when: false
|
|
|
|
- name: Install/Upgrade ArgoCD
|
|
command: >
|
|
/snap/bin/helm upgrade --install argocd argo/argo-cd
|
|
--namespace argocd
|
|
--create-namespace
|
|
--set server.service.type=NodePort
|
|
--wait
|
|
become: false
|
|
register: argocd_install
|
|
changed_when: "'Release \"argocd\" does not exist' in argocd_install.stdout or 'Happy Helming' in argocd_install.stdout"
|