6.2. 在清单文件中配置 Red Hat Ansible Lightspeed 变量
要部署 Red Hat Ansible Lightspeed,请将所需的安装变量添加到清单文件中的 [all: vars] 组。您还需要添加特定的变量以启用 Ansible Lightspeed 编码助手、Ansible Lightspeed 智能助手和 MCP 服务器集成。有关所需和可选 变量的信息,请参阅附录:Red Hat Ansible Lightspeed 变量。
# This is the list of inventory file variables required to deploy Red Hat Ansible Lightspeed on a containerized installation.
# Consult the docs if you are unsure what to add.
# For information about required and optional variables, refer to the Appendix: Red Hat Ansible Lightspeed variables
# https://docs.redhat.com/en/documentation/red_hat_ansible_automation_platform/2.6/html/containerized_installation/appendix-inventory-files-vars#lightspeed-variables
# This section is for your Red Hat Ansible Lightspeed host
# ---------------------------------------------------------
[ansiblelightspeed]
aap.example.com
# This section is for Red Hat Ansible Lightspeed deployment
# ----------------------------------------------------------
lightspeed_admin_user: <set your own>
lightspeed_admin_password: <set your own>
lightspeed_admin_email: <set your own>
lightspeed_pg_host: <set your own>
lightspeed_pg_password: <set your own>
# This section is to configure Ansible Lightspeed intelligent assistant
# ----------------------------------------------------------------------
lightspeed_chatbot_model_url: <set your own>
lightspeed_chatbot_model_api_key: <set your own>
lightspeed_chatbot_model_id: : <set your own>
lightspeed_chatbot_default_provider: 'rhoai'
lightspeed_chatbot_model_extra_settings: '{}'
# If you want to use {AzureOpenAI} as the LLM provider, specify the lightspeed_chatbot_model_extra_settings value as '{"api_type": ""}'.
# This section is to configure Ansible Lightspeed intelligent assistant with MCP server integration
# --------------------------------------------------------------------------------------------------
lightspeed_mcp_controller_enabled: false
lightspeed_mcp_lightspeed_enabled: false
# This section is to configure Ansible Lightspeed coding assistant
# -----------------------------------------------------------------
lightspeed_wca_model_type: 'wca'
lightspeed_wca_model_url: 'https://api.dataplatform.cloud.ibm.com'
lightspeed_wca_model_verify_ssl: true
lightspeed_wca_model_enable_anonymization: true
lightspeed_wca_health_check: true