tasks:
- name: Check JBOss java process
shell: ps -f "jboss.server"
register: jboss_java_process
ignore_errors: false
- debug: msg="JBoss Process is running on {{ inventory_hostname }}"
when: jboss_java_process.stdout_lines|length > 0
--
Brian Coca
--
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/CAJ5XC8m9TNGUfWBCMPLhOMGhupff3HH6djrkT%2BmR8oF8HUNf%3DQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.