ansible java ver (5 stars) (simple example)

Job ID: 35366282

Budget: $2 – $8 USD

Just trying to get this script working, can you help me on the "quick" - thank you in advance

- hosts: localhost
gather_facts: False

tasks:
- name: Fetch Java version
shell: java -version 2>&1 | grep version | awk '{print $3}' | sed 's/"//g'
changed_when: False
register: java_result

- debug:
msg: "{{ java_result.stdout }}"

Have others but hope you can show me an easy solution?

-------------------------------------------
let me know your thoughts and any questions

While this is hourly; there is a max of $15 total max for this project; all that is possible to pay, as being a cancer patient is tuff and been out of work. Hourly will give you more $ as there is less money taken between us from freelancer

There is hope you can give your “best” price; unemployed, and have cancer with bills backing up, $15 possible? Glowing paragraph of feedback 5 stars

My funds are low but will pay quick and leave 5 stars. Please give your best possible for your bid ? (something reasonable?) Please note there is hope we can mutually complete this task; we can leave each other nice comments and 5 stars for each? Look at feedback on my profile, feedback I left for many others. Here is the project:

SINCERELY WOULD BE NICE TO MEET YOU PLEASE

ANY THOUGHTS ? Please note project is due in two hours as this projects deadline, as this is needed if we can get some done - then we can talk about next steps and 5 stars and another job also. If this is a good one and we are "successful"; would need a couple others setup, but will handle one at a time? Can you do this for something reasonable in a couple hours? thoughts ?