Files
configpolicy/roles/blackbox-exporter/handlers/main.yml
Dustin C. Hatch dcf1e5adfc r/blackbox-exporter: Rework to run as container
Instead of downloading the `blackbox_exporter` binary from GitHub and
copying it to the managed node, the _blackbox-exporter_ role now
installs _podman_ and configures a systemd container unit (Quadlet) to
run it in a container.  This simplifies the deployment considerably, and
will make updating easier (just run the playbook with `-e
blackbox_exporter_pull_image=true`).
2025-01-26 13:06:54 -06:00

14 lines
246 B
YAML

- name: reload systemd
systemd:
daemon_reload: true
- name: restart blackbox-exporter
service:
name: blackbox-exporter
state: restarted
- name: reload blackbox-exporter
service:
name: blackbox-exporter
state: reloaded