Replace yml.j2 template with copy and content

This commit is contained in:
Tobias Reisinger 2025-06-11 21:23:17 +02:00
parent 36a54fef3d
commit 4cc94969f5
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
12 changed files with 41 additions and 51 deletions

View file

@ -8,10 +8,8 @@
state: directory
mode: "0755"
- name: Template default datasources
ansible.builtin.template:
src: yml.j2
- name: Create default datasources
ansible.builtin.copy:
dest: "{{ (datasources_path, 'default.yaml') | path_join }}"
content: '{{ lgtm_stack_grafana_datasources | to_nice_yaml }}'
mode: "0644"
vars:
yml: "{{ lgtm_stack_grafana_datasources }}"