java-nginx.yml 361 Bytes
- hosts: java-nginx
  tasks:
    - shell: cat /proc/cpuinfo | grep processor | wc -l
      register: processor_count
    - set_fact:
        processor_count: "{{ processor_count }}"
  vars_prompt:
    - name: "confirmation"
      prompt: "Sync and reload java nginx. Please Enter YES to continue."
      private: no
  remote_user: root
  roles:
    - openresty