Use exit codes to check if the module execution finished correctly
Use exit codes to check if the module execution finished correctly. This will work mainly for the modules which execute commands in the shell.
Excepted result: Exit codes replace error messages which can change.
References: https://www.cyberciti.biz/faq/linux-bash-exit-status-set-exit-statusin-bash/