Return the targets from the ansible inventory_file
    Default: /etc/salt/roster

def targets(tgt, tgt_type='glob', **kwargs):
    '''
    Return the targets from the ansible inventory_file
    Default: /etc/salt/roster
    '''
    inventory = __runner__['salt.cmd']('cmd.run', 'ansible-inventory -i {0} --list'.format(get_roster_file(__opts__)))
    __context__['inventory'] = __utils__['json.loads'](__utils__['stringutils.to_str'](inventory))

    if tgt_type == 'glob':
        hosts = [host for host in _get_hosts_from_group('all') if fnmatch.fnmatch(host, tgt)]
    elif tgt_type == 'nodegroup':
        hosts = _get_hosts_from_group(tgt)
    return {host: _get_hostvars(host) for host in hosts}