1
0
IaC/ansible/roles/vm_template/tasks/main.yml
2022-10-24 22:53:50 +13:00

12 lines
322 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 \