From 407d1840734592d36c4aaf4ec189f6c1d3ed08e4 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Wed, 25 Feb 2026 23:29:55 +0100 Subject: Add mac-archlinux host configurations --- bootstrap.yml | 1 + configure.yml | 17 ++++++++++++++++- host_vars/mac-archlinux.local.yml | Bin 0 -> 921 bytes host_vars/mac-archlinux.local.yml.example | 30 ++++++++++++++++++++++++++++++ inventory/hosts.yml | 1 + 5 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 host_vars/mac-archlinux.local.yml create mode 100644 host_vars/mac-archlinux.local.yml.example diff --git a/bootstrap.yml b/bootstrap.yml index 4ebca82a..0faf2646 100644 --- a/bootstrap.yml +++ b/bootstrap.yml @@ -3,6 +3,7 @@ gather_facts: true tags: ["required_for_boot"] hosts: + - mac-archlinux.local - archlinux.local - ubuntu.local - rpi5.local diff --git a/configure.yml b/configure.yml index 11039705..1c5592fb 100644 --- a/configure.yml +++ b/configure.yml @@ -3,6 +3,7 @@ gather_facts: true hosts: - archlinux.local + - mac-archlinux.local roles: - role: "locales" - role: "timezone" @@ -43,7 +44,6 @@ - role: "chromium" - role: "obsidian" - role: "microsoft-teams" - - role: "nvidia_gtx1060" - role: "steam" - role: "hyprland" post_tasks: @@ -55,6 +55,21 @@ changed_when: true when: reboot_required | default(false) +- name: "nvidia configure" + gather_facts: true + hosts: + - archlinux.local + roles: + - role: "nvidia_gtx1060" + post_tasks: + - name: "Reboot if required" + become: true + ansible.builtin.command: "shutdown -r now" + async: 1 + poll: 0 + changed_when: true + when: reboot_required | default(false) + - name: "Ubuntu configure" gather_facts: true hosts: diff --git a/host_vars/mac-archlinux.local.yml b/host_vars/mac-archlinux.local.yml new file mode 100644 index 00000000..b0b994f0 Binary files /dev/null and b/host_vars/mac-archlinux.local.yml differ diff --git a/host_vars/mac-archlinux.local.yml.example b/host_vars/mac-archlinux.local.yml.example new file mode 100644 index 00000000..22cce63b --- /dev/null +++ b/host_vars/mac-archlinux.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 5a7d536a..1e5f552f 100644 --- a/inventory/hosts.yml +++ b/inventory/hosts.yml @@ -3,6 +3,7 @@ homelab: vars: ansible_connection: ssh hosts: + mac-archlinux.local: archlinux.local: ubuntu.local: rpi5.local: -- cgit v1.2.3