java-nginx.yml 368 Bytes
- 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
  remote_user: root
  roles:
    - openresty