Name Last Update
inventories Loading commit data...
playbooks Loading commit data...
roles Loading commit data...
ansible.cfg Loading commit data...
readme.md Loading commit data...
requirements.yml Loading commit data...
site.retry Loading commit data...
site.yml Loading commit data...

YOHO ANSIBLE ROLES

Roles

  • openresty: 同步JAVA NGINX的配置
  • resolv: 配置服务器的'/etc/resolv.conf'

openresty

java nginx 静态文件位置: http://git.yoho.cn/ops/yoho-ansible-roles/tree/master/roles/openresty/files

How to Run

Default inventory file in [ansible.cfg] is : [./inventories/test/hosts] You should identify inventory file by [-i]


ansible-playbook site.yml -i inventories/az3/hosts
ansible-playbook site.yml --limit nginx  -i inventories/az3/hosts

# run playbooks
ansible-playbook playbooks/nginx.yml  -i inventories/az3/hosts

# run shell
ansible all -m shell -a "cat /etc/resolv.conf"  -i inventories/az3/hosts