register module help

– name: verify application/database processes are not running
shell: if ps -eaf | egrep ‘apache|http’|grep -v grep > /dev/null ;then echo ‘process_running’;else echo ‘process_not_running’;fi
ignore_errors: true
register: app_process_check

If i write something like above , How do i Check/Display what value “app_process_check” has got ?

The debug module will help with displaying it and the assert module may be what you want for checking (although there are many other ways to do the latter as well)

-toshio