diff --git a/roles/product_install/tasks/jira-core_version_latest.yml b/roles/product_install/tasks/jira-core_version_latest.yml new file mode 100644 index 0000000..0112206 --- /dev/null +++ b/roles/product_install/tasks/jira-core_version_latest.yml @@ -0,0 +1,9 @@ +--- + +- name: Fetch the latest version from URL + set_fact: + atl_product_version_json: "{{ lookup('url', 'https://marketplace.atlassian.com/rest/2/products/key/jira-software/versions') }}" + +- name: Set the local var to retrieved version + set_fact: + atl_latest_version: "{{ atl_product_version_json._embedded.versions[0].name }}" \ No newline at end of file