def allowed_in_check_mode(module):
    '''
    Check if the action is allowed in check mode
    '''

    action = module.params['action']
    report = module.params.get('report', False)

    # batch is allowed in check mode if report is set
    if action == 'batch' and report:
        return True

    allowed_actions = ['list', 'inventory']

    return action in allowed_actions

    Check if the action is allowed in check mode
    
library/ceph_volume.py