From d3baa3b34b8363eecc5633c03b7206a448af8c25 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Thu, 26 Feb 2026 19:34:13 +0100 Subject: Update mac hostname --- bootstrap.yml | 2 +- configure.yml | 2 +- host_vars/mac-archlinux.local.yml | Bin 921 -> 0 bytes host_vars/mac-archlinux.local.yml.example | 30 ------------------------------ host_vars/mac.local.yml | Bin 0 -> 921 bytes host_vars/mac.local.yml.example | 30 ++++++++++++++++++++++++++++++ inventory/hosts.yml | 2 +- 7 files changed, 33 insertions(+), 33 deletions(-) delete mode 100644 host_vars/mac-archlinux.local.yml delete mode 100644 host_vars/mac-archlinux.local.yml.example create mode 100644 host_vars/mac.local.yml create mode 100644 host_vars/mac.local.yml.example diff --git a/bootstrap.yml b/bootstrap.yml index 0faf2646..637469ca 100644 --- a/bootstrap.yml +++ b/bootstrap.yml @@ -3,7 +3,7 @@ gather_facts: true tags: ["required_for_boot"] hosts: - - mac-archlinux.local + - mac.local - archlinux.local - ubuntu.local - rpi5.local diff --git a/configure.yml b/configure.yml index 1c5592fb..a23b7295 100644 --- a/configure.yml +++ b/configure.yml @@ -3,7 +3,7 @@ gather_facts: true hosts: - archlinux.local - - mac-archlinux.local + - mac.local roles: - role: "locales" - role: "timezone" diff --git a/host_vars/mac-archlinux.local.yml b/host_vars/mac-archlinux.local.yml deleted file mode 100644 index b0b994f0..00000000 Binary files a/host_vars/mac-archlinux.local.yml and /dev/null differ diff --git a/host_vars/mac-archlinux.local.yml.example b/host_vars/mac-archlinux.local.yml.example deleted file mode 100644 index 22cce63b..00000000 --- a/host_vars/mac-archlinux.local.yml.example +++ /dev/null @@ -1,30 +0,0 @@ ---- -# Using raspberry pi as gateway (VPN) and DNS sinkhole (pihole) -network_ipv4_address: "10.0.0.200" -network_ipv4_gateway: "10.0.0.254" -network_ipv4_dns: "10.0.0.254" -network_ipv6_address: "fd5c:fd8b:2b8c::200/64" -network_ipv6_gateway: "fd5c:fd8b:2b8c::254" -network_ipv6_dns: "fd5c:fd8b:2b8c::254" - -python_versions: - - "3.13.7" - - "3.12.11" -ansible_core_version: "2.18.7" -molecule_version: "25.7.0" - -wireguard_connections: - wg-vpn1: | - [Interface] - PrivateKey = your_private_key_here - Address = 10.2.0.2/32 - DNS = 10.2.0.1 - - [Peer] - PublicKey = server_public_key - AllowedIPs = 0.0.0.0/0 - Endpoint = vpn.com:51820 - -fonts_extra: - - "ttf-dejavu" - - "noto-fonts" diff --git a/host_vars/mac.local.yml b/host_vars/mac.local.yml new file mode 100644 index 00000000..b0b994f0 Binary files /dev/null and b/host_vars/mac.local.yml differ diff --git a/host_vars/mac.local.yml.example b/host_vars/mac.local.yml.example new file mode 100644 index 00000000..22cce63b --- /dev/null +++ b/host_vars/mac.local.yml.example @@ -0,0 +1,30 @@ +--- +# Using raspberry pi as gateway (VPN) and DNS sinkhole (pihole) +network_ipv4_address: "10.0.0.200" +network_ipv4_gateway: "10.0.0.254" +network_ipv4_dns: "10.0.0.254" +network_ipv6_address: "fd5c:fd8b:2b8c::200/64" +network_ipv6_gateway: "fd5c:fd8b:2b8c::254" +network_ipv6_dns: "fd5c:fd8b:2b8c::254" + +python_versions: + - "3.13.7" + - "3.12.11" +ansible_core_version: "2.18.7" +molecule_version: "25.7.0" + +wireguard_connections: + wg-vpn1: | + [Interface] + PrivateKey = your_private_key_here + Address = 10.2.0.2/32 + DNS = 10.2.0.1 + + [Peer] + PublicKey = server_public_key + AllowedIPs = 0.0.0.0/0 + Endpoint = vpn.com:51820 + +fonts_extra: + - "ttf-dejavu" + - "noto-fonts" diff --git a/inventory/hosts.yml b/inventory/hosts.yml index 1e5f552f..0f70fa90 100644 --- a/inventory/hosts.yml +++ b/inventory/hosts.yml @@ -3,7 +3,7 @@ homelab: vars: ansible_connection: ssh hosts: - mac-archlinux.local: + mac.local: archlinux.local: ubuntu.local: rpi5.local: -- cgit v1.2.3