def is_role(path):
    """
    Determine if a path is an ansible role.
    """
    seems_legit = False
    for folder in c.ANSIBLE_FOLDERS:
        if os.path.exists(os.path.join(path, folder)):
            seems_legit = True

    return seems_legit
def is_role ( path ) : seems_legit = False for folder in c . ANSIBLE_FOLDERS : if os . path . exists ( os . path . join ( path , folder ) ) : seems_legit = True return seems_legit
Determine if a path is an ansible role.