Skip to content

Commit

Permalink
Merge pull request #438 from sverrehu/blackbox-capability-idempotence
Browse files Browse the repository at this point in the history
fix(blackbox_exporter): make capability setting idempotent
  • Loading branch information
gardar authored Oct 23, 2024
2 parents 7e80733 + 642c3fc commit c81f7d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roles/blackbox_exporter/tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
- 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
- blackbox_exporter_configure
- molecule-idempotence-notest

- name: Check Debug Message
ansible.builtin.debug:
Expand Down

0 comments on commit c81f7d9

Please sign in to comment.