Add basic lgtm-stack (WIP)
This commit is contained in:
parent
0b6e4f1550
commit
0359a4ffa7
7 changed files with 289 additions and 0 deletions
17
playbooks/roles/lgtm_stack/tasks/grafana.yml
Normal file
17
playbooks/roles/lgtm_stack/tasks/grafana.yml
Normal 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 }}"
|
Loading…
Add table
Add a link
Reference in a new issue