1
0

arranging vars

This commit is contained in:
michael 2022-10-24 17:32:38 +13:00
parent 686dde0156
commit 8aa59da325
4 changed files with 11 additions and 3 deletions

View File

@ -4,3 +4,5 @@
ansible_connection: ssh
ansible_become_method: sudo
ansible_become_user: root
ansible_port: 22

View File

@ -1,3 +1,5 @@
---
ansible_host: hv00.balsillie.net
vhd_template: "kube_template_vda.qcow2"
root_vhd_pool_dir: "/vhds" # No trailing /

View File

@ -1 +1 @@
root: {{ smtp_admin }}
root: {{ smtp_admin }}

View File

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