ansible playbooks for retailor.io infrastructure

This commit is contained in:
2025-03-03 19:33:36 +01:00
committed by KevinMidboe
commit 92cb10ba27
139 changed files with 33603 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
---
- name: install fail2ban
apt: pkg=fail2ban state=latest
- name: /etc/fail2ban/jail.conf
template: src=fail2ban/jail.conf.j2 dest=/etc/fail2ban/jail.conf owner=root group=root mode=644
notify: restart fail2ban
- name: /etc/fail2ban/fail2ban.conf
template: src=fail2ban/fail2ban.conf.j2 dest=/etc/fail2ban/fail2ban.conf owner=root group=root mode=644
notify: restart fail2ban
- name: Enable and start the fail2ban service
systemd:
name: fail2ban
state: started
enabled: yes

View File

@@ -0,0 +1,4 @@
---
- include_tasks: fail2ban.yaml
when: ansible_os_family == "Debian"