parent
fcc0d615a7
commit
4a7df9969d
23 changed files with 746 additions and 0 deletions
28
chris-here-bitte/tasks/add_alloy_configs.yaml
Normal file
28
chris-here-bitte/tasks/add_alloy_configs.yaml
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
- tags: [ grafana_alloy, alloy ]
|
||||
block:
|
||||
|
||||
- name: Deploy extra grafana-alloy config files
|
||||
become: true
|
||||
notify: alloy.reloaded
|
||||
with_filetree: "templates/alloy/"
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
template:
|
||||
src: "alloy/{{ item.path }}"
|
||||
dest: "/etc/alloy/{{ item.path }}"
|
||||
owner: alloy
|
||||
group: alloy
|
||||
mode: "u=r,g=r,o="
|
||||
|
||||
- name: Add alloy systemd override directory
|
||||
become: true
|
||||
file:
|
||||
path: /etc/systemd/system/alloy.service.d/
|
||||
state: directory
|
||||
|
||||
- name: Configure systemd service override
|
||||
notify: alloy.restarted
|
||||
become: true
|
||||
template:
|
||||
src: alloy.override.conf
|
||||
dest: /etc/systemd/system/alloy.service.d/override.conf
|
||||
Loading…
Add table
Add a link
Reference in a new issue