added machine-id regen

This commit is contained in:
Radar231 2023-12-23 11:46:34 -05:00
parent 04e605f049
commit 71a0cb620e
1 changed files with 6 additions and 0 deletions

View File

@ -176,6 +176,12 @@
when: host_type == "VM"
delegate_to: "{{ api_host }}"
- name: regen machine ID
shell:
cmd: qm guest exec {{ ctid }} -- bash -c "rm -f /etc/machine-id /var/lib/dbus/machine-id; dbus-uuidgen --ensure=/etc/machine-id; dbus-uuidgen --ensure"
when: host_type == "VM"
delegate_to: "{{ api_host }}"
- name: reboot guest VM
shell:
cmd: qm reboot {{ ctid }}