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 }}"
|
||||
|
|
|
@ -21,13 +21,11 @@
|
|||
mode: "0644"
|
||||
notify: Restart service {{ role_name }}
|
||||
|
||||
- name: Template mimir config file
|
||||
ansible.builtin.template:
|
||||
src: yml.j2
|
||||
- name: Create mimir config
|
||||
ansible.builtin.copy:
|
||||
dest: "{{ (service_path, 'mimir.yaml') | path_join }}"
|
||||
content: '{{ lgtm_stack_mimir_yml | to_nice_yaml }}'
|
||||
mode: "0644"
|
||||
vars:
|
||||
yml: "{{ lgtm_stack_mimir_yml }}"
|
||||
notify: Restart service {{ role_name }}
|
||||
|
||||
- name: Import start tasks for common service
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue