code: def fail_with_error(self, err_msg, err_operation=None):
          '''log an error to std err for ansible-playbook to consume and exit'''
          if err_operation:
              err_msg = 'ERROR: "{err_msg}", while: {err_operation}'.format(
                  err_msg=err_msg, err_operation=err_operation)
          sys.stderr.write(err_msg)
          sys.exit(1f fail_with_error(self, err_msg, err_operation=None):
          '''log an error to std err for ansible-playbook to consume and exit'''
          if err_operation:
              err_msg = 'ERROR: "{err_msg}", while: {err_operation}'.format(
                  err_msg=err_msg, err_operation=err_operation)
          sys.stderr.write(err_msg)
          sys.exit(1)
docs: log an error to std err for ansible-playbook to consume and exit