ansible-collection-prometheus/roles/blackbox_exporter/tasks/configure.yml
Thomas Venieris 791b9b1290
feature: Make config installation dir configurable (#173)
* 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>
2023-07-29 17:43:24 +02:00

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