Files
ansible_management/inventory.ini
2025-12-25 13:57:18 +00:00

18 lines
462 B
INI
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[caddy_servers]
# 本地 1panel 服务器
192.168.31.101
# 远程 Ubuntu 服务器
192.238.204.39
[all:vars]
# 请替换成您登录服务器的用户名
ansible_user=root
# --- 可选配置 ---
# 如果您的本地服务器不需要通过SSH而是直接在本机执行
192.168.31.101 ansible_ssh_private_key_file=~/.ssh/id_ed25519
# 如果您的远程服务器需要使用特定的SSH密钥
154.204.181.192 ansible_ssh_private_key_file=~/.ssh/id_ed25519