mirror of
https://github.com/roles-ansible/ansible_role_prometheus_ping_exporter.git
synced 2024-08-16 10:19:51 +02:00
18 lines
434 B
YAML
18 lines
434 B
YAML
---
|
|
- name: "Setup systemd service"
|
|
become: true
|
|
ansible.builtin.template:
|
|
src: 'templates/ping_exporter.service.j2'
|
|
dest: '/lib/systemd/system/ping_exporter.service'
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|
|
notify:
|
|
- "Systemctl restart ping_exporter.service"
|
|
|
|
- name: "Reload systemd"
|
|
become: true
|
|
ansible.builtin.systemd:
|
|
daemon_reload: true
|
|
notify:
|
|
- "Systemctl restart ping_exporter.service"
|