SHA256
chore(ansible): 停止Git追踪服务器相关配置文件,改为添加示例配置文件
添加hosts.yml和all.yml的示例配置文件 更新README.md中的部署说明 将敏感配置文件添加到.gitignore
This commit is contained in:
@@ -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
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user