arranging vars
This commit is contained in:
parent
686dde0156
commit
8aa59da325
@ -3,4 +3,6 @@
|
|||||||
# connection
|
# connection
|
||||||
|
|
||||||
ansible_connection: ssh
|
ansible_connection: ssh
|
||||||
ansible_become_method: sudo
|
ansible_become_method: sudo
|
||||||
|
ansible_become_user: root
|
||||||
|
ansible_port: 22
|
@ -1,3 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
ansible_host: hv00.balsillie.net
|
||||||
|
|
||||||
vhd_template: "kube_template_vda.qcow2"
|
vhd_template: "kube_template_vda.qcow2"
|
||||||
root_vhd_pool_dir: "/vhds" # No trailing /
|
root_vhd_pool_dir: "/vhds" # No trailing /
|
@ -1 +1 @@
|
|||||||
root: {{ smtp_admin }}
|
root: {{ smtp_admin }}
|
||||||
|
@ -4,4 +4,8 @@
|
|||||||
when: template_created is changed
|
when: template_created is changed
|
||||||
ansible.builtin.shell:
|
ansible.builtin.shell:
|
||||||
cmd: |
|
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 \
|
||||||
|
Loading…
Reference in New Issue
Block a user