ansible-collection-prometheus/roles/_common/handlers/main.yml
gardar 8734f607db
enhancement: add role for common tasks
Signed-off-by: gardar <gardar@users.noreply.github.com>
2024-10-15 16:50:28 +00:00

15 lines
380 B
YAML

---
- name: "Restart {{ _common_service_name }}"
# listen: "restart_service"
become: true
ansible.builtin.service:
daemon_reload: true
name: "{{ _common_service_name }}"
state: restarted
- name: "Reload {{ _common_service_name }}"
# listen: "reload_service"
become: true
ansible.builtin.service:
name: "{{ _common_service_name }}"
state: reloaded