2023-09-01 15:42:19 -04:00
|
|
|
---
|
|
|
|
- name: restart rsyslog
|
|
|
|
service:
|
|
|
|
name: rsyslog
|
|
|
|
state: restarted
|
|
|
|
|
|
|
|
- name: restart xinetd
|
|
|
|
service:
|
|
|
|
name: xinetd
|
|
|
|
state: restarted
|
|
|
|
|
|
|
|
- name: restart postfix
|
|
|
|
service:
|
|
|
|
name: postfix
|
|
|
|
state: restarted
|
|
|
|
|
|
|
|
- name: restart ntp
|
|
|
|
service:
|
|
|
|
name: ntp
|
|
|
|
state: restarted
|
|
|
|
|
|
|
|
- name: restart ssh
|
|
|
|
service:
|
|
|
|
name: ssh
|
|
|
|
state: restarted
|
|
|
|
|
|
|
|
- name: restart fail2ban
|
|
|
|
service:
|
|
|
|
name: fail2ban
|
|
|
|
state: restarted
|
|
|
|
|
|
|
|
- name: newaliases
|
|
|
|
command: newaliases
|
2023-09-01 15:42:26 -04:00
|
|
|
|
|
|
|
- name: update grub
|
|
|
|
command: update-grub
|
2023-09-01 15:42:29 -04:00
|
|
|
|
|
|
|
- name: regenerate uefi entries
|
|
|
|
shell: for entry in $(efibootmgr|awk '{print $1}'|grep -Eo '[0-9]+'); do efibootmgr -b ${entry} -B; done; grub-install /dev/$(lsblk -no pkname $(findmnt -n /boot/efi|awk '{print $2}'))
|