host_exporters: purge OpenIPMI on hosts without a BMC, its leftover init script fails at boot
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user