host_exporters: purge OpenIPMI on hosts without a BMC, its leftover init script fails at boot

This commit is contained in:
2026-10-29 08:03:37 +00:00
parent 32651402c6
commit f92b36ceaa
+9
View File
@@ -8,6 +8,15 @@
install_recommends: false install_recommends: false
state: present 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 - name: Bind the node exporter to one address
ansible.builtin.lineinfile: ansible.builtin.lineinfile:
path: /etc/default/prometheus-node-exporter path: /etc/default/prometheus-node-exporter