How to use Linux shell command exit codes

900

You can use the numeric codes returned by shell scripts or Ansible playbooks to identify problems and test the code.

Read More at Enable Sysadmin