Oefenweb / ansible-fail2ban

Ansible role to set up fail2ban in Debian-like systems
MIT License
117 stars 55 forks source link

Role cannot be run in check mode #74

Closed prouveyrol closed 1 year ago

prouveyrol commented 1 year ago

When running a playbook using this role with the "-C" option, it will skip the following task

- name: get fail2ban version
  ansible.builtin.command: >
    fail2ban-server -V
  changed_when: false
  register: _fail2ban_version_raw
  tags:
    - configuration
    - fail2ban
    - fail2ban-install

Resulting in the next task getting an error. I was going to make a PR, but actually, it already exists : https://github.com/Oefenweb/ansible-fail2ban/pull/73