Files
dc-deployments-automation/roles/product_install/tasks/jira-software_version_latest.yml
2022-12-23 14:39:36 +01:00

9 lines
381 B
YAML

---
- name: Fetch the latest version from URL
ansible.builtin.set_fact:
atl_product_version_json: "{{ lookup('url', 'https://marketplace-admin.internal.atlassian.com/rest/2/products/key/jira-software/versions') }}"
- name: Set the local var to retrieved version
ansible.builtin.set_fact:
atl_latest_version: "{{ atl_product_version_json._embedded.versions[0].name }}"