initial commit
This commit is contained in:
21
tasks/02-get-installed-version.yml
Normal file
21
tasks/02-get-installed-version.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
|
||||
- name: "check if version file exists"
|
||||
ansible.builtin.stat:
|
||||
path: "{{ ts3_base_dir }}/installed-version.txt"
|
||||
register: ts3_installed_version_file
|
||||
|
||||
- name: "get installed version file"
|
||||
ansible.builtin.slurp:
|
||||
src: "{{ ts3_base_dir }}/installed-version.txt"
|
||||
when:
|
||||
- "ts3_installed_version_file.stat.exists"
|
||||
register: ts3_installed_version_raw
|
||||
|
||||
- name: "set installed version"
|
||||
ansible.builtin.set_fact:
|
||||
ts3_installed_version: "{{ ts3_installed_version_raw.content | b64decode }}"
|
||||
ts3_initial_installation: false
|
||||
when:
|
||||
- "ts3_installed_version_raw is defined"
|
||||
- "ts3_installed_version_file.stat.exists"
|
||||
Reference in New Issue
Block a user