lib/vagrant/compose/config.rb
#filter ansible groups if vagrant command specify filters and maps to a list of hostnames
filter ansible groups if vagrant command specify filters and maps to a list of hostnames
filter ansible groups if vagrant command specify filters and maps to a list of hostnames
def filterInventory(inventory)
        ansible_groups = {}
        inventory.each do |group, hosts|
          ansible_groups[group] = []
          hosts.each do |host|
            if filterBoxname(host['boxname'])
              ansible_groups[group] << host['hostname']
            end
          end
        end
        return ansible_groups
      end
def filterInventory ( inventory ) ansible_groups = { } inventory . each do | group , hosts | ansible_groups [ group ] = [ ] hosts . each do | host | if filterBoxname ( host [ 'boxname' ] ) ansible_groups [ group ] << host [ 'hostname' ] end end end return ansible_groups end
filter ansible groups if vagrant command specify filters and maps to a list of hostnames
filter ansible groups if vagrant command specify filters and maps to a list of hostnames
inventory
<not_specific>