---
node_preparation:
  actions:
    - name: update_system
      command: "sudo apt update && sudo apt upgrade -y"
    - name: install_dependencies
      command: "sudo apt install -y curl git docker.io docker-compose-v2 tailscale"
    - name: configure_docker_permissions
      command: "sudo usermod -aG docker $USER"
    - name: create_runtime_directories
      command: "sudo mkdir -p /opt/homelab/{services,config,state,logs} && sudo chown -R $USER:$USER /opt/homelab"
    - name: initialize_repo
      command: "git clone <repo_url> ~/homelab-codex-ws"
