ansible-infra/chris-here-bitte/tasks/add_alloy_configs.yaml
lilly 4a7df9969d
Some checks failed
/ Ansible Lint (push) Failing after 2m17s
tmp
2026-02-26 21:13:10 +01:00

28 lines
768 B
YAML

- 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