From f92b36ceaa1da0e0aaac05b262af7fc947d17998 Mon Sep 17 00:00:00 2001 From: Ruakij Date: Thu, 29 Oct 2026 08:03:37 +0000 Subject: [PATCH] host_exporters: purge OpenIPMI on hosts without a BMC, its leftover init script fails at boot --- host_exporters/tasks/main.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/host_exporters/tasks/main.yml b/host_exporters/tasks/main.yml index cb28fd2..3b964c2 100644 --- a/host_exporters/tasks/main.yml +++ b/host_exporters/tasks/main.yml @@ -8,6 +8,15 @@ install_recommends: false state: present +# Left over from installs with recommends; its init script fails at boot without a BMC. +# Purge also removes the init script a plain removal keeps. +- name: Purge OpenIPMI on hosts without a BMC + ansible.builtin.apt: + name: openipmi + state: absent + purge: true + when: not host_exporters_ipmi + - name: Bind the node exporter to one address ansible.builtin.lineinfile: path: /etc/default/prometheus-node-exporter