Both are different commands. If I use shell and >>test.csv for each task, it 
gets appended as 
Root
Admin
Test_admin
1232
4343
2233.
But I need it in other way.


For eg
Shell: ps -ef | grep Java | awk '{print $1}'
Shell: ps -ef | grep Java | grep app | awk '{print $2}'

-- 
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/38c28b86-1590-4b35-8c22-aab1c94a906f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to