Hey ,
I am trying to find out java version on all my host using the script
---
- name: Find java version
hosts: testservers
become: true
become_user: root
gather_facts: true
tasks:
- name: run these commands to find java version
command: java -version
How Can I edit the script, so that I can have a file with hostname and Java
version of it on Ansible control Machine.
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/d4c6e4dd-982b-4aaf-94b3-c57330364425%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.