def set_flannel_facts_if_unset(facts):
 if ('common' in facts):
  if ('use_flannel' not in facts['common']):
   use_flannel = False
   facts['common']['use_flannel'] = use_flannel
 return facts

def set_flannel_facts_if_unset ( facts ) : if ( 'common' in facts ) : if ( 'use_flannel' not in facts [ 'common' ] ) : use_flannel = False facts [ 'common' ] [ 'use_flannel' ] = use_flannel return facts
set flannel facts if not already present in facts dict dict: the facts dict updated with the flannel facts if missing args: facts : existing facts returns: dict: the facts dict updated with the flannel facts if they were not already present .