@staticmethod
def version_info(ansible_version_string):
    """ return full ansible version info """
    ansible_ver = ansible_version_string.split()[0]
    ansible_versions = ansible_ver.split('.')
    for counter in range(len(ansible_versions)):
        if ansible_versions[counter] == '':
            ansible_versions[counter] = 0
        try:
            ansible_versions[counter] = int(ansible_versions[counter])
        except Exception:
            pass
    if len(ansible_versions) < 3:
        for counter in range(len(ansible_versions), 3):
            ansible_versions.append(0)
    return {'string': ansible_version_string.strip(), 'full': ansible_ver,
        'major': ansible_versions[0], 'minor': ansible_versions[1],
        'revision': ansible_versions[2]}
