40 lines
743 B
YAML
40 lines
743 B
YAML
---
|
|
- 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
|
|
|
|
- name: update grub
|
|
command: update-grub
|
|
|
|
- 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}'))
|