updated nix to 25.05 and fixed setup.sh
Some checks failed
Ansible Lint Check / check-ansible (push) Failing after 32s
Nix Format Check / check-format (push) Failing after 1m24s
Python Lint Check / check-python (push) Failing after 19s

Signed-off-by: Menno van Leeuwen <menno@vleeuwen.me>
This commit is contained in:
2025-07-11 00:17:52 +00:00
parent 41d15eedde
commit 10508b9916
21 changed files with 154 additions and 126 deletions

View File

@@ -27,10 +27,6 @@
ansible.builtin.import_tasks: tasks/global/openssh-server.yml
become: true
- name: Include Utils tasks
ansible.builtin.import_tasks: tasks/global/utils.yml
become: true
- name: Ensure common packages are installed
ansible.builtin.package:
name:
@@ -45,6 +41,7 @@
- python3-venv
- pylint
- black
- pipx
# Package manager wrapper
- nala
# Go
@@ -52,6 +49,10 @@
state: present
become: true
- name: Include Utils tasks
ansible.builtin.import_tasks: tasks/global/utils.yml
become: true
- name: Ensure ~/.hushlogin exists
ansible.builtin.stat:
path: ~/.hushlogin

View File

@@ -2,18 +2,21 @@
- name: Load DOTFILES_PATH environment variable
ansible.builtin.set_fact:
dotfiles_path: "{{ lookup('env', 'DOTFILES_PATH') }}"
become: false
- name: Ensure ~/.local/bin exists
ansible.builtin.file:
path: "{{ ansible_env.HOME }}/.local/bin"
state: directory
mode: "0755"
become: false
- name: Scan utils folder and create symlinks in ~/.local/bin
ansible.builtin.find:
paths: "{{ dotfiles_path }}/config/ansible/tasks/global/utils"
file_type: file
register: utils_files
become: false
- name: Create symlinks for utils scripts
ansible.builtin.file:

View File

@@ -1,7 +0,0 @@
package main
import "fmt"
func main() {
fmt.Println("Hello, World!")
}

View File

@@ -68,6 +68,7 @@
- name: Include JuiceFS Redis tasks
ansible.builtin.include_tasks: services/redis/redis.yml
when: inventory_hostname == 'mennos-cloud-server'
- name: Enable and start JuiceFS service
ansible.builtin.systemd:

View File

@@ -17,31 +17,61 @@
services:
- name: caddy
enabled: true
hosts:
- mennos-cloud-server
- name: karakeep
enabled: true
hosts:
- mennos-cloud-server
- name: golink
enabled: true
hosts:
- mennos-cloud-server
- name: immich
enabled: true
hosts:
- mennos-cloud-server
- name: gitea
enabled: true
hosts:
- mennos-cloud-server
- name: jellyfin
enabled: true
hosts:
- mennos-cloud-server
- name: seafile
enabled: true
hosts:
- mennos-cloud-server
- name: uptime-kuma
enabled: true
hosts:
- mennos-cloud-server
- name: factorio
enabled: true
hosts:
- mennos-cloud-server
- name: dozzle
enabled: true
hosts:
- mennos-cloud-server
- name: beszel
enabled: true
hosts:
- mennos-cloud-server
- name: downloaders
enabled: true
hosts:
- mennos-cloud-server
- name: wireguard
enabled: true
hosts:
- mennos-cloud-server
- name: echoip
enabled: true
hosts:
- mennos-cloud-server
- name: arr-stack
enabled: false
hosts:
- mennos-cloud-server

View File

@@ -5,7 +5,7 @@
- name: Include service tasks
ansible.builtin.include_tasks: "{{ item.name }}/{{ item.name }}.yml"
loop: "{{ services }}"
when: item.enabled|bool
when: item.enabled|bool and (inventory_hostname in item.hosts)
loop_control:
label: "{{ item.name }}"
tags: