- Installs final release of LG SVL Simulator
- Configures an optional systemd user service to start/stop
- Creates a user port assignment for LG SVL Simulator API, allowing multiple users to use at the same time
- Tested with remote desktop using NICE-DCV as well as on-premise machines
- Ubuntu 22.04
- Ubuntu 24.04
Platforms supported:
- linux/amd64
- Ansible 2.15
roles:
- name: xronos_lgsvl_simulator_ansible
role: xronos_lgsvl_simulator_ansibleOpen /opt/svlsimulator/simulator to start LG SVL Simulator.
A systemd user service is configured to assist with automated environments such as cloud-hosted simulations or for multi-user environments. The service requries that the appropriate DISPLAY and XAUTHORITY environment variables are set -- keep in mind that user services do not start from a shell and do not automatically in herit these values.
systemctl --user start svlsimulatorThis service will automatically apply any environment variable set in ~/.local/svlsimulator/env-lgsvl.
The default values are as follows:
LGSVL__SIMULATOR_PORT=8181
DISPLAY=:0 # only set if lgsvl_service_use_local_display is 'true'
XAUTHORITY=~/.Xauthoritylgsvl_install_root_directoryinstallation directory. Will create the subdirectorysvlsimulator. Defaults to/optlgsvl_service_use_local_displaywill use the default valueDISPLAY=:0when the service starts. This may be overridden by the environment file.lgsvl_service_port_mapwill allocate user ports, starting at8182, for each user who runs this script. The port map is stored in the installation root directory, and the user's environment file is configured to use this port. Iffalse, no port map is created. Defaults totrue.lgsvl_env_xauthority: the path to the.Xauthorityfile for this user to write to their environment file. Defaults to~/.Xauthority.