- name: Get all Helm releases
shell: >
helm list -o yaml
register: _helm_releases
- name: Get Helm release
set_fact:
my_release: "{{ (_helm_releases.stdout | from_yaml | selectattr('name', 'equalto', 'releaseName') | list)[0] | default({}) }}"