Modification package pour compatibilité debian 12

This commit is contained in:
Navas 2023-12-30 18:31:12 +01:00
parent aa48faf11a
commit e471408702

View file

@ -20,12 +20,27 @@
- apache2-utils
- modsecurity-crs
- libapache2-mod-security2
- libapache2-mod-auth-openid
- libapache2-mod-perl2
- fail2ban
- whois
- dialog
- name: install - packages
tags: install
package:
state: present
name:
- libapache2-mod-auth-openid
when: (ansible_facts['distribution'] == "Debian" and ansible_facts['distribution_major_version'] == "11")
- name: install - packages
tags: install
package:
state: present
name:
- libapache2-mod-auth-openidc
when: (ansible_facts['distribution'] == "Debian" and ansible_facts['distribution_major_version'] == "12")
- name: install - enable fail2ban
tags: install
service: name=fail2ban state=started enabled=yes