43 lines
685 B
YAML
43 lines
685 B
YAML
---
|
|
- 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
|