Hi I have the below playbook to stop and start the service using the script present in the the target machine,
tasks:
- name : stop
command: ./coconf.sh -stop &
register: stop_details
- debug: var=stop_details
The actual output of stop details contains multiline as below
Using /opt/jre/1.6.0_133/bin/java
SLF4J: class path contain multiple SLF4J bindings.
SLF4J: found binding in [jar:file]
like above 4 lines will be there.
But in my register variable I am able to get only the first line, which is
Using /opt/jre/1.6.0_133/bin/java
Is there any way to capture the entire output in register variable??