Compare commits

...

2 Commits

Author SHA1 Message Date
3c463400ca add fallback for admin token 2022-11-19 14:26:29 +01:00
c3f08a7b8f update .gitignore 2022-11-19 14:21:53 +01:00
2 changed files with 7 additions and 2 deletions

3
.gitignore vendored
View File

@@ -1 +1,2 @@
.idea/* /.idea/
*.iml

View File

@@ -12,4 +12,8 @@
ts3_admin_token: "{{ item | regex_search('.*\\|token=(.*)$', '\\1') | first }}" ts3_admin_token: "{{ item | regex_search('.*\\|token=(.*)$', '\\1') | first }}"
when: when:
- "'|token=' in item" - "'|token=' in item"
loop: "{{ ts3_log_content.stdout_lines }}" loop: "{{ ts3_log_content.stdout_lines }}"
rescue:
- name: "Set token to nothing"
ansible.builtin.set_fact:
ts3_admin_token: ""