From 96f7c8a82a16051c19b4c9bbb8db898aecb6103b Mon Sep 17 00:00:00 2001 From: ilia Date: Thu, 9 Oct 2025 21:43:29 -0400 Subject: [PATCH] Update inventory and shell configuration for improved host management - Adjust inventory file to standardize ansible_user settings for listmonk and jellyfin hosts, ensuring consistent user access across services. - Update .zshrc file to include SSH aliases for new hosts, enhancing accessibility for remote management. These changes streamline host management and improve the usability of SSH connections for infrastructure operations. --- inventories/production/host_vars/devGPU.yml | 3 +-- inventories/production/hosts | 4 ++-- roles/shell/files/.zshrc | 20 ++++++++++++++++++++ 3 files changed, 23 insertions(+), 4 deletions(-) diff --git a/inventories/production/host_vars/devGPU.yml b/inventories/production/host_vars/devGPU.yml index 02df7a6..0374445 100644 --- a/inventories/production/host_vars/devGPU.yml +++ b/inventories/production/host_vars/devGPU.yml @@ -26,6 +26,5 @@ install_cursor_extensions: true # Cursor extension groups to enable install_python: true # Python development -install_jupyter: true # Jupyter notebooks -install_r: true # R language support + install_docs: true # Markdown/documentation diff --git a/inventories/production/hosts b/inventories/production/hosts index 6259fc4..1a3919f 100644 --- a/inventories/production/hosts +++ b/inventories/production/hosts @@ -30,8 +30,8 @@ tailscaleVM ansible_host=100.66.218.53 ansible_user=ladmin [services] caddy ansible_host=100.117.106.18 ansible_host_fallback=10.0.10.50 ansible_user=root jellyfin ansible_host=100.104.109.45 ansible_host_fallback=10.0.10.232 ansible_user=root -listmonk ansible_host=100.73.190.115 ansible_host_fallback=10.0.10.149 ansible_user=ladmin -slack ansible_host=100.110.190.69 ansible_host_fallback=10.0.10.154 ansible_user=ladmin +listmonk ansible_host=100.73.190.115 ansible_host_fallback=10.0.10.149 ansible_user=root +#slack ansible_host=100.110.190.69 ansible_host_fallback=10.0.10.154 ansible_user=ladmin [desktop] desktop-beast ansible_host=100.117.34.106 ansible_user=beast diff --git a/roles/shell/files/.zshrc b/roles/shell/files/.zshrc index 22a95b5..1718b50 100644 --- a/roles/shell/files/.zshrc +++ b/roles/shell/files/.zshrc @@ -185,6 +185,26 @@ alias own="sudo chown -R $USER:$USER" alias nfresh="rm -rf node_modules/ package-lock.json && npm install" +# SSH aliases for Ansible hosts +alias ssh-gitea="ssh gitea@10.0.30.169" +alias ssh-portainer="ssh ladmin@10.0.30.69" +alias ssh-homepage="ssh homepage@10.0.30.12" +alias ssh-vaultwarden="ssh root@100.100.19.11" +alias ssh-vaultwarden-fallback="ssh root@10.0.10.142" +alias ssh-dev01="ssh ladmin@10.0.30.105" +alias ssh-bottom="ssh beast@10.0.10.156" +alias ssh-debian="ssh user@10.0.10.206" +alias ssh-devGPU="ssh root@10.0.30.63" +alias ssh-ansible="ssh master@10.0.10.157" +alias ssh-tailscale="ssh ladmin@100.66.218.53" +alias ssh-caddy="ssh root@100.117.106.18" +alias ssh-caddy-fallback="ssh root@10.0.10.50" +alias ssh-jellyfin="ssh root@100.104.109.45" +alias ssh-jellyfin-fallback="ssh root@10.0.10.232" +alias ssh-listmonk="ssh root@100.73.190.115" +alias ssh-listmonk-fallback="ssh root@10.0.10.149" +alias ssh-desktop="ssh beast@100.117.34.106" + # >>> conda initialize >>> # !! Contents within this block are managed by 'conda init' !! if [ -f "$HOME/anaconda3/bin/conda" ]; then