mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-26 13:50:20 +00:00
791b9b1290
* feature: Make config installation dir configurable Signed-off-by: Thomas Venieris <thomas.venieris@gmail.com> * fix: blackbox_exporter_config_dir consistent - Made blackbox_exporter_config_dir parameter consistent with other collection roles - Added new parameter to meta/argument_specs.yml Signed-off-by: Thomas Venieris <thomas.venieris@gmail.com> --------- Signed-off-by: Thomas Venieris <thomas.venieris@gmail.com>
20 lines
534 B
YAML
20 lines
534 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: "{{ blackbox_exporter_config_dir }}/blackbox_exporter.yml"
|
|
owner: root
|
|
group: "{{ blackbox_exporter_group }}"
|
|
mode: 0644
|
|
notify:
|
|
- reload blackbox exporter
|