diff --git a/inventory.ini b/inventory.ini index 7458236..0675352 100644 --- a/inventory.ini +++ b/inventory.ini @@ -11,7 +11,7 @@ ansible_user=root # --- 可选配置 --- # 如果您的本地服务器不需要通过SSH,而是直接在本机执行 -192.168.31.101 ansible_ssh_private_key_file=~/.ssh/id_ed25519.pub +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.pub +154.204.181.192 ansible_ssh_private_key_file=~/.ssh/id_ed25519