Example: How to Run the Configuration File
In the /root/ExecutionServer folder (or opt/ExecutionServer for Linux machines on Azure or AWS), run the appropriate command:
To use this Execution Server for general operations:
mono QsExecutionServerConsoleConfig.exe /s:ServerAddress /u:User/p:Pass /esn:ESName
For example:
mono QsExecutionServerConsoleConfig.exe /s:192.168.30.56 /u:admin /p:admin /esn:ESName
To use this Execution Server for Ansible configuration management operations, you need to set the /ansible flag, which tells CloudShell to use this Execution Server to run Ansible plauybooks.
mono QsExecutionServerConsoleConfig.exe /s:ServerAddress /u:admin /p:admin /esn:ExecutionServerName /ansible /a:"{'Execution Server Selector':'CloudShellDomain'}"
Use the Execution Server Selector attribute if you have several Execution Servers that support Ansible but want to dedicate this Execution Server for Ansible operations.
For example:
mono QsExecutionServerConsoleConfig.exe /s:192.168.35.41 /u:admin /p:admin /esn:ExecutionServerName /ansible /a:"{'Execution Server Selector':'London'}"
Notes:- The same Execution Server Selector value must be specified in the Execution Server Selector attribute on the Ansible Configuration service model in Resource Manager Client (in the Configuration Services family).
- To run Ansible on App-deployed Windows VMs, WinRM must be enabled on those VMs. For additional information, see the CloudShell online help's Ansible documentation.