java-nginx.swith_aws.yml
713 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:
- 172.31.70.77
- 172.31.70.113
- 172.31.70.8
- 172.31.70.104
remote_user: root
roles:
- openresty