mirror of
https://github.com/RWejlgaard/pez-infra.git
synced 2026-05-06 04:14:43 +00:00
london-b had both a custom node_exporter.service and the package-managed prometheus-node-exporter.service installed. Both tried to bind port 9100, causing the package version to fail. - Add cleanup tasks to remove custom /etc/systemd/system/node_exporter.service and /usr/local/bin/node_exporter if present - Add node_exporter_extra_collectors variable for configurable collectors - Configure london-b with systemd/processes/sysctl/ethtool/zfs collectors matching its previous custom setup Resolves PESO-109
14 lines
314 B
YAML
14 lines
314 B
YAML
---
|
|
- name: Reload systemd
|
|
ansible.builtin.systemd:
|
|
daemon_reload: true
|
|
|
|
- name: Restart node-exporter (Debian)
|
|
ansible.builtin.service:
|
|
name: prometheus-node-exporter
|
|
state: restarted
|
|
|
|
- name: Restart node_exporter (FreeBSD)
|
|
ansible.builtin.service:
|
|
name: node_exporter
|
|
state: restarted
|