diff options
| author | Ahmed Abdelhalim <[email protected]> | 2026-02-25 23:29:55 +0100 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2026-02-25 23:29:55 +0100 |
| commit | 407d1840734592d36c4aaf4ec189f6c1d3ed08e4 (patch) | |
| tree | 7fab3bad6a8192b44a7518e9bd23c9dc2c1516f5 | |
| parent | a79459516f210f38cf3281ffe8887f27afaa84d2 (diff) | |
Add mac-archlinux host configurations
| -rw-r--r-- | bootstrap.yml | 1 | ||||
| -rw-r--r-- | configure.yml | 17 | ||||
| -rw-r--r-- | host_vars/mac-archlinux.local.yml | bin | 0 -> 921 bytes | |||
| -rw-r--r-- | host_vars/mac-archlinux.local.yml.example | 30 | ||||
| -rw-r--r-- | inventory/hosts.yml | 1 |
5 files changed, 48 insertions, 1 deletions
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 Binary files differnew file mode 100644 index 00000000..b0b994f0 --- /dev/null +++ b/host_vars/mac-archlinux.local.yml 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: |
