Files
dc-deployments-automation/roles/product_install/tasks/jira-servicedesk_version_latest.yml
2022-09-07 18:56:23 -05:00

9 lines
369 B
YAML

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