Add basic lgtm-stack (WIP)

This commit is contained in:
Tobias Reisinger 2025-05-01 01:28:24 +02:00
parent 0b6e4f1550
commit 0359a4ffa7
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
7 changed files with 289 additions and 0 deletions

View file

@ -0,0 +1,17 @@
- name: Set grafana datasources path
ansible.builtin.set_fact:
datasources_path: "{{ (service_path, 'datasources') | path_join }}"
- name: Create datasources directory
ansible.builtin.file:
path: "{{ datasources_path }}"
state: directory
mode: "0755"
- name: Template default datasources
ansible.builtin.template:
src: yml.j2
dest: "{{ (datasources_path, 'default.yaml') | path_join }}"
mode: "0644"
vars:
yml: "{{ lgtm_stack_grafana_datasources }}"