ansible/dns : switch to grafana alloy
This commit is contained in:
24
ansible/roles/grafana_alloy/handlers/main.yml
Normal file
24
ansible/roles/grafana_alloy/handlers/main.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
---
|
||||
# ================================================================
|
||||
# Handlers for grafana_alloy role
|
||||
# ================================================================
|
||||
|
||||
- name: Reload systemd
|
||||
ansible.builtin.systemd:
|
||||
daemon_reload: true
|
||||
become: true
|
||||
listen: Reload systemd
|
||||
|
||||
- name: Restart alloy
|
||||
ansible.builtin.service:
|
||||
name: alloy
|
||||
state: restarted
|
||||
become: true
|
||||
listen: Restart alloy
|
||||
|
||||
- name: Convert GPG key
|
||||
ansible.builtin.command:
|
||||
cmd: gpg --dearmor -o /etc/apt/keyrings/grafana.gpg /tmp/grafana.gpg.key
|
||||
creates: /etc/apt/keyrings/grafana.gpg
|
||||
become: true
|
||||
listen: Convert GPG key
|
||||
Reference in New Issue
Block a user