Skip to content

Commit

Permalink
fix(blackbox): make capability setting idempotent
Browse files Browse the repository at this point in the history
Signed-off-by: Sverre H. Huseby <shh@thathost.com>
  • Loading branch information
sverrehu committed Oct 23, 2024
1 parent 81d3d62 commit a9bc6d7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions roles/blackbox_exporter/tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@
- name: Ensure blackbox exporter binary has cap_net_raw capability
community.general.capabilities:
path: "{{ blackbox_exporter_binary_install_dir }}/blackbox_exporter"
capability: cap_net_raw+ep
capability: cap_net_raw=ep
state: present
become: true
when: not ansible_check_mode
changed_when: "'molecule-idempotence-notest' not in ansible_skip_tags"
tags:
- blackbox_exporter
- configure
Expand Down

0 comments on commit a9bc6d7

Please sign in to comment.