Files
dc-deployments-automation/roles/product_install/tasks/product_version_latest.yml

14 lines
514 B
YAML

---
# This is the process for most products (except ServiceDesk
# basically). Symlink this to <edition>_version_latest.yml for each
# product that supports the standard marketplace API.
- name: Fetch the latest version from URL
ansible.builtin.set_fact:
atl_product_version_json: "{{ lookup('url', '{{ atl_mpac_product_latest_version_url }}') }}"
- name: Set the local var to retrieved version
ansible.builtin.set_fact:
atl_latest_version: "{{ atl_product_version_json.versions[0].versionNumber }}"