Configure environments sub tasks dynamically based on environments variable.