java-nginx.swith_aws.yml
698 Bytes
# Last updated at 2019/01/07 14:30 by tiexin.yang@yoho.cn
# Sync and apply java nginx config file
# How to Run:
# Use the default settings:
# ansible-playbook -i inventories/az1/hosts playbooks/java-nginx.switch_aws.yml
- hosts: java-nginx
pre_tasks:
- shell: cat /proc/cpuinfo | grep processor | wc -l
register: cpu_count_ret
- set_fact:
processor_count: "{{ cpu_count_ret.stdout }}"
vars_prompt:
- name: "confirmation"
prompt: "Sync and reload java nginx. Please Enter YES to continue."
private: no
vars:
java_gateway_ips:
- java-gateway-431f16063270008f.elb.cn-north-1.amazonaws.com.cn
remote_user: root
roles:
- openresty