fix: remove OS checks

either use the generic package module or OS-specific tasks that won't silently fail playbook runs
This commit is contained in:
2026-07-09 16:17:30 +02:00
parent 04e38f42b5
commit 9fbba9ffd6
4 changed files with 3 additions and 6 deletions
-2
View File
@@ -24,7 +24,6 @@
name:
- fail2ban
state: present
when: ansible_facts['os_family'] == "Debian"
become: true
- name: Start fail2ban
@@ -32,4 +31,3 @@
name: fail2ban
state: started
enabled: yes
when: ansible_facts['os_family'] == "Debian"