1
0
IaC/ansible/roles/vm_template/tasks/main.yml
2022-10-24 17:32:38 +13:00

12 lines
321 B
YAML

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