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
|
@ -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 }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue