mirror of
https://github.com/prometheus-community/ansible
synced 2025-02-16 20:58:26 +00:00
20 lines
491 B
YAML
20 lines
491 B
YAML
---
|
|
- name: Create systemd service unit
|
|
ansible.builtin.template:
|
|
src: blackbox_exporter.service.j2
|
|
dest: /etc/systemd/system/blackbox_exporter.service
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|
|
notify:
|
|
- restart blackbox exporter
|
|
|
|
- name: Configure blackbox exporter
|
|
ansible.builtin.template:
|
|
src: blackbox_exporter.yml.j2
|
|
dest: /etc/blackbox_exporter.yml
|
|
owner: blackbox-exp
|
|
group: blackbox-exp
|
|
mode: 0644
|
|
notify:
|
|
- reload blackbox exporter
|