[fix] (blackblox-exporter) Update hardcoded install path

Signed-off-by: Emmanuel Bilheude <ebilheude@dotscreen.com>
This commit is contained in:
Emmanuel Bilheude 2024-05-14 14:22:14 +02:00
parent affb21c098
commit edec9daf5b
2 changed files with 2 additions and 2 deletions

View file

@ -78,7 +78,7 @@
- name: Ensure blackbox exporter binary has cap_net_raw capability
community.general.capabilities:
path: '/usr/local/bin/blackbox_exporter'
path: "{{ blackbox_exporter_binary_install_dir }}/blackbox_exporter"
capability: cap_net_raw+ep
state: present
when: not ansible_check_mode

View file

@ -11,7 +11,7 @@ User={{ blackbox_exporter_user }}
Group={{ blackbox_exporter_group }}
PermissionsStartOnly=true
ExecReload=/bin/kill -HUP $MAINPID
ExecStart=/usr/local/bin/blackbox_exporter \
ExecStart={{ blackbox_exporter_binary_install_dir }}/blackbox_exporter \
--config.file={{ blackbox_exporter_config_dir }}/blackbox_exporter.yml \
{% for flag, flag_value in blackbox_exporter_cli_flags.items() -%}
--{{ flag }}={{ flag_value }} \