2022-10-23 22:50:38 -04:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: sysprep the template vhd
|
2022-10-24 05:53:50 -04:00
|
|
|
# when: template_created is changed
|
2022-10-23 22:50:38 -04:00
|
|
|
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 \
|