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,15 @@
---
- name: "Get Admin Token on first installation"
when: "ts3_initial_installation"
block:
- name: "get file content"
shell: "grep '|token=' {{ ts3_base_dir }}/logs/*.log"
register: ts3_log_content
- name: "search for token"
ansible.builtin.set_fact:
ts3_admin_token: "{{ item | regex_search('.*\\|token=(.*)$', '\\1') | first }}"
when:
- "'|token=' in item"
loop: "{{ ts3_log_content.stdout_lines }}"