DCD-224: Rework of ServiceDesk handling to deal with more corner-cases, and limit it to the product_download role.

This commit is contained in:
Steve Smith
2019-05-06 17:21:56 +10:00
parent 4a429df39a
commit b9ac693d14
27 changed files with 299 additions and 286 deletions

View File

@@ -0,0 +1,21 @@
---
- name: Check for existing version cache file
stat:
path: "{{ atl_product_version_cache }}"
register: cached
# Case: File exists, always use its value
- name: Use version for product version
block:
- name: Read cached version from file
command: "cat {{ atl_product_version_cache }}"
register: atl_product_version_file
changed_when: false
- name: Set the local var to cached version
set_fact:
atl_product_version: "{{ atl_product_version_file.stdout }}"
when: cached.stat.exists