Compare commits

...

3 Commits

4 changed files with 15 additions and 12 deletions

View File

@ -1,7 +1,6 @@
---
almalinux:
- bind-utils
- cloud-init
- dbus-daemon
- dhcp-client
- efibootmgr
@ -25,7 +24,6 @@ almalinux:
archlinux:
- base
- btrfs-progs
- cloud-init
- cronie
- dhcpcd
- efibootmgr
@ -77,7 +75,6 @@ debian11:
- xfsprogs
extra:
- cloud-init
- curl
- firewalld
- fish
@ -115,7 +112,6 @@ debian12:
extra:
- apparmor-utils
- chrony
- cloud-init
- curl
- firewalld
- fish
@ -144,7 +140,6 @@ debian12:
fedora:
- bind-utils
- btrfs-progs
- cloud-init
- cronie
- dhcp-client
- efibootmgr
@ -168,7 +163,6 @@ fedora:
- zstd
rhel8:
- cloud-init
- dhcp-client
- efibootmgr
- grub2
@ -179,10 +173,10 @@ rhel8:
- open-vm-tools
- shim
- telnet
- vim
- zstd
rhel9:
- cloud-init
- dhcp-client
- efibootmgr
- grub2
@ -193,11 +187,11 @@ rhel9:
- open-vm-tools
- shim
- telnet
- vim
- zstd
rocky:
- bind-utils
- cloud-init
- dbus-daemon
- dhcp-client
- efibootmgr
@ -237,7 +231,6 @@ ubuntu:
- apparmor-utils
- bash-completion
- chrony
- cloud-init
- curl
- dnsutils
- firewalld
@ -281,7 +274,6 @@ ubuntu-lts:
- apparmor-utils
- bash-completion
- chrony
- cloud-init
- curl
- dnsutils
- firewalld

View File

@ -1,4 +1,9 @@
---
- name: Unmount /mnt recursively
ansible.builtin.command: umount -l /mnt
changed_when: result.rc == 0
register: result
- name: Setup Cleanup
when: hypervisor == "proxmox"
delegate_to: localhost

View File

@ -204,6 +204,11 @@
changed_when: net_inf.rc == 0
register: net_inf
- name: Register MAC Address of the Network Interface
ansible.builtin.shell: ip link show "{{ net_inf.stdout }}" | awk '/link\/ether/ {print $2}' | tr '[:lower:]' '[:upper:]'
register: net_mac
changed_when: net_mac.rc == 0
- name: Copy NetworkManager keyfile
ansible.builtin.template:
src: network.j2

View File

@ -5,6 +5,7 @@ type=ethernet
interface-name={{ net_inf.stdout }}
[ethernet]
mac-address={{ net_mac.stdout }}
[ipv4]
address={{ vm_ip }},{{ vm_gw }}
@ -12,7 +13,7 @@ dns={{ vm_dns }}
method=manual
[ipv6]
addr-gen-mode=default
addr-gen-mode=stable-privacy
method=disabled
[proxy]
[proxy]