Skip to content

Commit

Permalink
Set default namespace when finished
Browse files Browse the repository at this point in the history
  • Loading branch information
jannfis committed Jan 11, 2021
1 parent ded451a commit d741ed7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions roles/core-argocd/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,19 @@
become: yes
become_user: vagrant

- name: Wait a little for Argo CD to settle
pause:
seconds: 5

- name: Perform login to argocd
shell:
cmd: /usr/local/bin/argocd login --username admin --password admin --insecure {{ argocd.service_ip }}
when: argocd.cli.autologin is true
become: yes
become_user: vagrant

- name: Set default namespace in kube context to argocd
shell:
cmd: kubens argocd
become: yes
become_user: vagrant

0 comments on commit d741ed7

Please sign in to comment.