--- all: hosts: gitea-server: ansible_host: 192.168.1.100 # 替换为实际服务器 IP ansible_user: root # 替换为实际 SSH 用户 # ansible_ssh_private_key_file: ~/.ssh/id_rsa