Skip to content

Commit

Permalink
Run safely in check mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakski committed May 20, 2022
1 parent 4a74de4 commit 70cd359
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
ansible.builtin.command: >
fail2ban-server -V
changed_when: false
check_mode: false
register: _fail2ban_version_raw
tags:
- configuration
Expand All @@ -25,6 +26,7 @@
ansible.builtin.set_fact:
fail2ban_version: "{{ _fail2ban_version_raw.stdout | regex_search('([0-9]+\\.[0-9]+\\.[0-9]+)') }}"
changed_when: false
check_mode: false
tags:
- configuration
- fail2ban
Expand Down

0 comments on commit 70cd359

Please sign in to comment.