Authored by chunhua.zhang

add readme

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