diff --git a/tasks/crowdsec.yaml b/tasks/crowdsec.yaml index 7956235..32f9e5e 100644 --- a/tasks/crowdsec.yaml +++ b/tasks/crowdsec.yaml @@ -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"