27 lines
805 B
YAML
27 lines
805 B
YAML
- block:
|
|
|
|
- name: Upgrade argo-cd chart
|
|
kubernetes.core.helm:
|
|
name: argo-cd
|
|
chart_ref: /opt/metacluster/helm-charts/argo-cd
|
|
release_namespace: argo-cd
|
|
wait: false
|
|
kubeconfig: "{{ kubeconfig.path }}"
|
|
values: "{{ components['argo-cd'].chart_values }}"
|
|
|
|
- name: Ensure argo-cd API availability
|
|
ansible.builtin.uri:
|
|
url: https://gitops.{{ vapp['metacluster.fqdn'] }}/api/version
|
|
method: GET
|
|
register: api_readycheck
|
|
until:
|
|
- api_readycheck.json.Version is defined
|
|
retries: "{{ playbook.retries }}"
|
|
delay: "{{ (storage_benchmark | int) * (playbook.delay.long | int) }}"
|
|
|
|
module_defaults:
|
|
ansible.builtin.uri:
|
|
validate_certs: no
|
|
status_code: [200, 201]
|
|
body_format: json
|