feat: 🎸 initial commit
This commit is contained in:
21
roles/argocd/tasks/main.yml
Normal file
21
roles/argocd/tasks/main.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
- 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"
|
||||
Reference in New Issue
Block a user