Showing
1 changed file
with
2 additions
and
2 deletions
1 | - hosts: java-nginx | 1 | - hosts: java-nginx |
2 | pre_tasks: | 2 | pre_tasks: |
3 | - shell: cat /proc/cpuinfo | grep processor | wc -l | 3 | - shell: cat /proc/cpuinfo | grep processor | wc -l |
4 | - register: processor_count | 4 | + register: cpu_count_ret |
5 | - set_fact: | 5 | - set_fact: |
6 | - processor_count: "{{ processor_count }}" | 6 | + processor_count: "{{ cpu_count_ret.stdout }}" |
7 | vars_prompt: | 7 | vars_prompt: |
8 | - name: "confirmation" | 8 | - name: "confirmation" |
9 | prompt: "Sync and reload java nginx. Please Enter YES to continue." | 9 | prompt: "Sync and reload java nginx. Please Enter YES to continue." |
-
Please register or login to post a comment