|
|
- hosts: java-nginx
|
|
|
pre_tasks:
|
|
|
- shell: cat /proc/cpuinfo | grep processor | wc -l
|
|
|
register: processor_count
|
|
|
register: cpu_count_ret
|
|
|
- set_fact:
|
|
|
processor_count: "{{ processor_count }}"
|
|
|
processor_count: "{{ cpu_count_ret.stdout }}"
|
|
|
vars_prompt:
|
|
|
- name: "confirmation"
|
|
|
prompt: "Sync and reload java nginx. Please Enter YES to continue."
|
...
|
...
|
|