27 lines
830 B
YAML
27 lines
830 B
YAML
- block:
|
|
- name: Install longhorn chart
|
|
kubernetes.core.helm:
|
|
name: longhorn
|
|
chart_ref: /opt/metacluster/helm-charts/longhorn
|
|
release_namespace: longhorn-system
|
|
create_namespace: true
|
|
wait: false
|
|
kubeconfig: "{{ kubeconfig.path }}"
|
|
values: "{{ components['longhorn'].chart_values }}"
|
|
|
|
- name: Ensure longhorn API availability
|
|
ansible.builtin.uri:
|
|
url: https://storage.{{ vapp['metacluster.fqdn'] }}/v1
|
|
method: GET
|
|
register: api_readycheck
|
|
until:
|
|
- api_readycheck is not failed
|
|
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
|