'Determine inventory options. Environment variables always
take precedence over configuration files.'

def get_inventory_options(self):

    ip_type = self.config.get('inventory', 'inventory_ip_type')
    ip_type = os.environ.get('INVENTORY_IP_TYPE', ip_type)
    return ip_type
