- 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