Add sqlite to teamspeak webhook and add "Backup" to servername
This commit is contained in:
parent
4dbec53d30
commit
1ddf34690c
5 changed files with 40 additions and 7 deletions
|
@ -11,6 +11,13 @@
|
|||
- name: Import prepare tasks for common service
|
||||
ansible.builtin.import_tasks: tasks/prepare-common-service.yml
|
||||
|
||||
- name: Copy the Dockerfile
|
||||
ansible.builtin.copy:
|
||||
src: Dockerfile
|
||||
dest: "{{ (service_path, 'Dockerfile') | path_join }}"
|
||||
mode: "0644"
|
||||
notify: Rebuild service {{ role_name }}
|
||||
|
||||
- name: Template the conditional-start script
|
||||
ansible.builtin.template:
|
||||
src: conditional-start.sh.j2
|
||||
|
@ -19,17 +26,17 @@
|
|||
|
||||
- name: Set webhook config path
|
||||
ansible.builtin.set_fact:
|
||||
config_path: "{{ (service_path, 'config') | path_join }}"
|
||||
teamspeak_fallback_config_path: "{{ (service_path, 'config') | path_join }}"
|
||||
|
||||
- name: Create config directory
|
||||
ansible.builtin.file:
|
||||
path: "{{ config_path }}"
|
||||
path: "{{ teamspeak_fallback_config_path }}"
|
||||
state: directory
|
||||
mode: "0755"
|
||||
|
||||
- name: Create main config
|
||||
ansible.builtin.copy:
|
||||
dest: "{{ (config_path, 'hooks.yml') | path_join }}"
|
||||
dest: "{{ (teamspeak_fallback_config_path, 'hooks.yml') | path_join }}"
|
||||
content: '{{ teamspeak_fallback_yml | to_nice_yaml }}'
|
||||
mode: "0644"
|
||||
notify: Restart service {{ role_name }}
|
||||
|
@ -37,7 +44,7 @@
|
|||
- name: Copy the teamspeak-fallback-db script
|
||||
ansible.builtin.copy:
|
||||
src: teamspeak-fallback-db
|
||||
dest: "{{ (config_path, 'teamspeak-fallback-db') | path_join }}"
|
||||
dest: "{{ (teamspeak_fallback_config_path, 'teamspeak-fallback-db') | path_join }}"
|
||||
mode: "0755"
|
||||
|
||||
- name: Import start tasks for common service
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue