From 794d2fe38e429607b1f18f6bdd7f40af10b04008 Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Sat, 7 Dec 2024 21:18:25 +0100 Subject: [PATCH] [crowdsec] feat: split tasks debian/ubuntu --- tasks/crowdsec.yaml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) 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"