2022-10-23 22:50:38 -04:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: sysprep the template vhd
|
|
|
|
when: template_created is changed
|
|
|
|
ansible.builtin.shell:
|
|
|
|
cmd: |
|
2022-10-24 00:32:38 -04:00
|
|
|
virt-sysprep -a {{ root_vhd_pool_dir }}/{{ vhd_template }} \
|
|
|
|
--format qcow2 \
|
|
|
|
--delete /etc/systemd/network/* \
|
|
|
|
--keep-user-accounts ladmin \
|
|
|
|
--enable user-account,firewall-rules \
|