Files
ansible_management/inventory.ini
2025-07-11 15:48:18 +08:00

18 lines
471 B
INI
Raw 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.100
# 远程 Ubuntu 服务器
154.204.181.192
[all:vars]
# 请替换成您登录服务器的用户名
ansible_user=root
# --- 可选配置 ---
# 如果您的本地服务器不需要通过SSH而是直接在本机执行
192.168.31.100 ansible_ssh_private_key_file=~/.ssh/id_ed25519.pub
# 如果您的远程服务器需要使用特定的SSH密钥
154.204.181.192 ansible_ssh_private_key_file=~/.ssh/id_ed25519.pub