added machine-id regen
This commit is contained in:
parent
04e605f049
commit
71a0cb620e
|
@ -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 }}
|
||||
|
|
Loading…
Reference in New Issue