initial commit
This commit is contained in:
44
tasks/main.yml
Normal file
44
tasks/main.yml
Normal file
@@ -0,0 +1,44 @@
|
||||
---
|
||||
- name: "Setup requirements"
|
||||
include_tasks: "00-check-requirements.yml"
|
||||
|
||||
- name: "run version tasks"
|
||||
include_tasks: "00-get-latest-version.yml"
|
||||
when:
|
||||
- "ts3_version == 'latest'"
|
||||
|
||||
- name: "Set download url"
|
||||
include_tasks: "01-set-download-url.yml"
|
||||
|
||||
- name: "Get info of installed instance"
|
||||
include_tasks: "02-get-installed-version.yml"
|
||||
|
||||
- name: "Setup system"
|
||||
include_tasks: "{{ tasks_file }}"
|
||||
loop_control:
|
||||
loop_var: "tasks_file"
|
||||
loop:
|
||||
- "10-user-setup.yml"
|
||||
- "11-setup-dirs.yml"
|
||||
|
||||
- debug:
|
||||
var: ts3_version
|
||||
- debug:
|
||||
var: ts3_installed_version
|
||||
|
||||
- name: "Install TS3 {{ ts3_version }}"
|
||||
include_tasks: "{{ tasks_file }}"
|
||||
loop_control:
|
||||
loop_var: "tasks_file"
|
||||
loop:
|
||||
- "30-install-ts3.yml"
|
||||
- "31-set-query-password.yml"
|
||||
- "32-get-admin-token.yml"
|
||||
when:
|
||||
- "ts3_installed_version is version(ts3_version, '<')"
|
||||
|
||||
- name: "Start Service"
|
||||
include_tasks: "33-start-service.yml"
|
||||
|
||||
- name: "Show output"
|
||||
include_tasks: "99-output.yml"
|
||||
Reference in New Issue
Block a user