diff --git a/tasks/main.yml b/tasks/main.yml index fa07196..94eb4c2 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -15,6 +15,7 @@ ansible.builtin.command: > fail2ban-server -V changed_when: false + check_mode: false register: _fail2ban_version_raw tags: - configuration @@ -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