add vm_destroy playbook and role

correct network addressing in template
write hostname to /etc/hostname
This commit is contained in:
2022-10-30 23:48:43 +13:00
parent 73c9106c8f
commit 50c451e94d
7 changed files with 113 additions and 1 deletions

View File

@ -1,13 +1,20 @@
[Match]
MACAddress={{ vm_mac_prefix }}{{ vm_number }}
[Link]
ARP=yes
[Address]
{{ vm_subnet_prefix }}{{ vm_number }}{{ vm_subnet_suffix }}
Address={{ vm_subnet_prefix }}{{ vm_number }}{{ vm_subnet_suffix }}
[Route]
Gateway={{ vm_gateway }}
Destination=0.0.0.0/0
Metric=10
[Network]
DHCP=no
LinkLocalAddressing=no
DNS={{ vm_gateway }}
Domains={{ vm_domain }}
NTP={{ vm_ntp }}