Add debian common role

This commit is contained in:
2023-05-05 15:47:27 -04:00
parent b387d68eda
commit bf6bfe2809
79 changed files with 3166 additions and 0 deletions

View File

@ -0,0 +1,42 @@
---
- name: load sysctl tweaks
shell: "/sbin/sysctl -p /etc/sysctl.d/{{ item }}"
loop: "{{ sysctl_files }}"
- name: restart zramswap
service:
name: zramswap
state: restarted
- name: restart ntp
service:
name: ntp
state: restarted
- name: restart postfix
service:
name: postfix
state: restarted
- name: restart nftables
service:
name: nftables
state: restarted
- name: restart rsyslog
service:
name: rsyslog
state: restarted
- name: restart ssh
service:
name: ssh
state: restarted
- name: restart fail2ban
service:
name: fail2ban
state: restarted
- name: generate locales
command: /usr/sbin/locale-gen