initial commit

This commit is contained in:
2022-11-04 17:02:32 +01:00
commit 2bf26a8285
26 changed files with 438 additions and 0 deletions

View 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"