How can I add service accounts to the Local Administrators group for Multiple Environments

#1

Hi Guys,

Currently I can add using this -

group "Administrators" do
members 'xxxxx'
append true
action :create
end

Can someone help me how can I do it with Multiple Environments like diff members for Int, Prod and all ?