Compare commits

...

3 Commits

4 changed files with 15 additions and 12 deletions

View File

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

View File

@ -204,6 +204,11 @@
changed_when: net_inf.rc == 0 changed_when: net_inf.rc == 0
register: net_inf 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 - name: Copy NetworkManager keyfile
ansible.builtin.template: ansible.builtin.template:
src: network.j2 src: network.j2

View File

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