chore(ansible): 停止Git追踪服务器相关配置文件,改为添加示例配置文件

添加hosts.yml和all.yml的示例配置文件
更新README.md中的部署说明
将敏感配置文件添加到.gitignore
This commit is contained in:
2026-04-21 15:16:46 +08:00
parent 66c254e0ff
commit 25c1fa9bd7
4 changed files with 61 additions and 2 deletions
+8 -2
View File
@@ -30,8 +30,14 @@ tjhlp-gitea/
```bash
cd ansible
# 编辑 inventory/hosts.yml 填入服务器地址
# 编辑 inventory/group_vars/all.yml 修改域名、密码等
cp inventory/hosts.yml.example inventory/hosts.yml
cp inventory/group_vars/all.yml.example inventory/group_vars/all.yml
```
编辑 ansible/inventory/hosts.yml 填入服务器地址
编辑 ansible/inventory/group_vars/all.yml 修改域名、密码等
```bash
ansible-playbook playbook.yml
```