Add More Than One Role When Automating Tentacle installation

There is a PS script listed https://octopus.com/blog/auto-provision-ec2-instances-with-tentacle-installed to automate Tentacle installation when provisioning EC2 on AWS. How to include more than one role when running the script?
The parameter is
$registerInRoles = "web-server"
Install-Tentacle -apikey $yourApiKey -octopusServerUrl $octopusServerUrl -environment $registerInEnvironments -role $registerInRoles

Is there away to have more than one role defined? like $registerInRoles = “web-server, windows-service”

Hi,

Thanks for getting in touch!

You can specify the --role parameter multiple times like below

Install-Tentacle -apikey $yourApiKey -octopusServerUrl $octopusServerUrl -environment $registerInEnvironments -role "web-server" -role "windows-service"

Hope that helps!

Thank you and best regards,
Henrik

Thanks Henrik! that’s what I was looking for.