Fix issues reported by ansible-lint (var prefixes)
This commit is contained in:
parent
0f9e4544b0
commit
39fd6ef5a2
24 changed files with 86 additions and 86 deletions
|
|
@ -1,15 +1,15 @@
|
|||
- name: Set grafana datasources path
|
||||
ansible.builtin.set_fact:
|
||||
datasources_path: "{{ (service_path, 'datasources') | path_join }}"
|
||||
lgtm_stack_datasources_path: "{{ (service_path, 'datasources') | path_join }}"
|
||||
|
||||
- name: Create datasources directory
|
||||
ansible.builtin.file:
|
||||
path: "{{ datasources_path }}"
|
||||
path: "{{ lgtm_stack_datasources_path }}"
|
||||
state: directory
|
||||
mode: "0755"
|
||||
|
||||
- name: Create default datasources
|
||||
ansible.builtin.copy:
|
||||
dest: "{{ (datasources_path, 'default.yaml') | path_join }}"
|
||||
dest: "{{ (lgtm_stack_datasources_path, 'default.yaml') | path_join }}"
|
||||
content: '{{ lgtm_stack_grafana_datasources | to_nice_yaml }}'
|
||||
mode: "0644"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue