def execution_has_failures(playbook_results):
    """Return value 2 means failure in ansible-playbook"""
    if type(playbook_results) != list:
        playbook_results = [playbook_results]
    return 2 in playbook_results