Adding environment key to inventory grouping