Initial commit
This commit is contained in:
17
inventory.ini
Normal file
17
inventory.ini
Normal file
@@ -0,0 +1,17 @@
|
||||
[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
|
||||
Reference in New Issue
Block a user