'run the idempotent ansible code'

@staticmethod
def run_ansible(params, check_mode):

    nconfig = ManageNodeConfig(params['kubeconfig'], {'node': {'value': params['node'], 'include': True}, 'selector': {'value': params['selector'], 'include': True}, 'pod_selector': {'value': params['pod_selector'], 'include': True}, 'schedulable': {'value': params['schedulable'], 'include': True}, 'list_pods': {'value': params['list_pods'], 'include': True}, 'evacuate': {'value': params['evacuate'], 'include': True}, 'dry_run': {'value': params['dry_run'], 'include': True}, 'force': {'value': params['force'], 'include': True}, 'grace_period': {'value': params['grace_period'], 'include': True}})
    oadm_mn = ManageNode(nconfig)
    results = None
    changed = False
    if (params['schedulable'] != None):
        if check_mode:
            return {'changed': True, 'msg': 'CHECK_MODE:    would    have    called    schedulable.'}
        results = oadm_mn.schedulable()
        if ('changed' not in results):
            changed = True
    if params['evacuate']:
        results = oadm_mn.evacuate()
        changed = True
    elif params['list_pods']:
        results = oadm_mn.list_pods()
    if ((not results) or (results['returncode'] != 0)):
        return {'failed': True, 'msg': results}
    return {'changed': changed, 'results': results, 'state': 'present'}
