From 70cd3599dce68399f7ab72c64284a78a161b2635 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Pie=C5=84kowski?= <8525083+Jakski@users.noreply.github.com> Date: Wed, 18 May 2022 19:38:37 +0200 Subject: [PATCH] Run safely in check mode --- tasks/main.yml | 2 ++ 1 file changed, 2 insertions(+) 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