Replace yml.j2 template with copy and content
This commit is contained in:
parent
36a54fef3d
commit
4cc94969f5
12 changed files with 41 additions and 51 deletions
|
@ -7,7 +7,6 @@
|
|||
svc: "{{ teamspeak_fallback_svc }}"
|
||||
compose: "{{ teamspeak_fallback_compose }}"
|
||||
env: "{{ teamspeak_fallback_env }}"
|
||||
yml: "{{ teamspeak_fallback_yml }}"
|
||||
block:
|
||||
- name: Import prepare tasks for common service
|
||||
ansible.builtin.import_tasks: tasks/prepare-common-service.yml
|
||||
|
@ -28,10 +27,10 @@
|
|||
state: directory
|
||||
mode: "0755"
|
||||
|
||||
- name: Template main config
|
||||
ansible.builtin.template:
|
||||
src: yml.j2
|
||||
- name: Create main config
|
||||
ansible.builtin.copy:
|
||||
dest: "{{ (config_path, 'hooks.yml') | path_join }}"
|
||||
content: '{{ teamspeak_fallback_yml | to_nice_yaml }}'
|
||||
mode: "0644"
|
||||
notify: Restart service {{ role_name }}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue