servers/roles/proxmox/handlers/main.yml
Timotej Lazar e499bbf570 proxmox: fix network interface renaming
Use systemd .link files which are "relatively futureproof" according
to https://wiki.debian.org/NetworkInterfaceNames .
2025-08-13 12:03:28 +02:00

28 lines
612 B
YAML

- name: update initramfs
command: update-initramfs -u -k all
when: "'handler' not in ansible_skip_tags"
- name: reboot
reboot:
when: "'handler' not in ansible_skip_tags"
- name: reload interfaces
command: ifreload -a
when: "'handler' not in ansible_skip_tags"
- name: reload postfix
service:
name: postfix
state: reloaded
when: "'handler' not in ansible_skip_tags"
- name: reload sshd
service:
name: sshd
state: reloaded
when: "'handler' not in ansible_skip_tags"
- name: update package cache
package:
update_cache: yes
when: "'handler' not in ansible_skip_tags"