[crowdsec] feat: split tasks debian/ubuntu

This commit is contained in:
Simon Cornet 2024-12-07 21:18:25 +01:00
commit 794d2fe38e

View file

@ -31,12 +31,22 @@
tags:
- "crowdsec"
# install crowdsec firewall bouncer
- name: "install crowdsec firewall bouncer"
# install crowdsec firewall bouncer - debian
- name: "install crowdsec firewall bouncer - debian"
ansible.builtin.apt:
name: "crowdsec-firewall-bouncer"
state: "present"
cache_valid_time: "120"
when: 'ansible_os_family == "Debian"'
when: 'ansible_distribution == "Debian"'
tags:
- "crowdsec"
# install crowdsec firewall bouncer - ubuntu
- name: "install crowdsec firewall bouncer - ubuntu"
ansible.builtin.apt:
name: "crowdsec-firewall-bouncer-iptables"
state: "present"
cache_valid_time: "120"
when: 'ansible_distribution == "Ubuntu"'
tags:
- "crowdsec"