Install VDAs using Ansible
Overview
This article describes how to deploy VDAs using Ansible. For more information, see the Ansible documentation.
Note:
This article describes only recommendations based on how Citrix® has tested the environment. You can customize these steps according to your needs. Citrix is not responsible for any updates or tweaks needed to this to fit customer needs.
Key steps to deploy VDA using Ansible
-
Kerberos Configuration
Step 1: Configure the virtual machine environment
Run the following commands on the Windows server.
-
Set PS RemoteSigned.
Set-ExecutionPolicy RemoteSigned -
Set WinRM to use unencrypted:
winrm set winrm/config/service '@{AllowUnencrypted="true"}'Note:If an error occurs in this step, use the following command:Enable-PSRemoting -Force -
Open the firewall port 5985.
New-NetFirewallRule -DisplayName "Allow WinRm port 5985" -Direction Inbound -Profile Any -Action Allow -LocalPort 5985 -Protocol tcp
Step 2: Install Ansible
To install Ansible with Ubuntu 20.4 or later, run the following commands:
-
sudo apt update -
sudo apt install software-properties-common -
sudo add-apt-repository --yes --update ppa:ansible/ansible -
sudo apt install ansible -
sudo apt install python3-pip
Step 2i: Install Kerberos
To install Kerberos, run the following command.
sudo apt install python3-dev libkrb5-dev krb5-user
Step 2ii: Configure Kerberos
To configure Kerberos, run the following command:
Edit /etc/krb5.conf
Note:
Use upper case letters for the Kerberos realm name.
Step 3: Configure Ansible
To configure the Ansible host, complete the following steps:
-
Run the following command:
Edit /etc/ansible/hosts -
Configure a Delivery Controller
Install.yamlfile/QUIET /NOREBOOT /NORESUME /OPTIMIZE /VERBOSELOG /COMPONENTS VDA /CONTROLLERS 'MyDDC.xd.local' /ENABLE_HDX_PORTS /ENABLE_REAL_TIME_TRANSPORT



-
Run the yaml file with the following command:
sudo ansible-playbook install.yml -vvv(Verbose mode) -
You can configure multiple hosts in the config file with other additional configurations.
Edit /etc/ansible/hosts