Authored by chunhua.zhang

add readme

Showing 1 changed file with 17 additions and 4 deletions
# YOHO ANSIBLE ROLES
## 准备`ansible`的环境
>1.创建用户: `useradd ansible -g root -d /home/ansible`.
>2.安装`ansible`
>3.将被管理的服务器的`private key` copy 到 `~/.ssh/`
>4.`git clone` 本项目即可
## Roles
- `openresty`: 同步JAVA NGINX的配置
- `resolv`: 配置服务器的'/etc/resolv.conf'
### `openresty`: 同步JAVA NGINX的配置
>`java nginx` 静态文件位置: http://git.yoho.cn/ops/yoho-ansible-roles/tree/master/roles/openresty/files
>如何同步`java nginx`的配置? `ansible-playbook playbooks/java-nginx.yml -i inventories/az2/hosts`
### `resolv`: 配置服务器的'/etc/resolv.conf'
### openresty
`java nginx` 静态文件位置: http://git.yoho.cn/ops/yoho-ansible-roles/tree/master/roles/openresty/files
## How to Run
... ...