ansible
ansible copied to clipboard
Blackbox_exporter - Add a check config condition
Would it be possible to add a task that would check that :
- The blackbox_exporter.yml configuration imported is correct before resuming actions and starting service
- If yes, resume actions
- Otherwise, stop actions
So far, this is possible by launching /usr/local/bin/blackbox_exporter --config.check --config.file="/etc/blackbox_exporter.yml"
Output of this cmd looks like below :
ts=2023-08-22T09:40:19.081Z caller=main.go:87 level=info msg="Config file is ok exiting..."