You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用Ansible win_package模块安装Scale Out Software遇阻求助

Scale Out Software Ansible安装故障排查求助

在Windows服务器上安装Scale Out Software时,手动以管理员权限打开PowerShell执行命令msiexec.exe /i "C:\GCMS\soss.msi" /quiet INSTALLLEVEL=500可成功完成安装,但使用Ansible的win_package模块时,虽然能正常下载soss.msi文件,却无法完成安装流程。已尝试配置提权为Administrator用户,问题仍未解决,以下是我的Ansible代码片段,恳请帮忙排查问题所在。

Ansible主剧本片段

- name: Install Scaleout Host Service
  hosts: "LkmsCG4server"
  serial: "{{ scaleout_install_max_concurrency | default(1) }}"
  become_method: runas
  tasks:
    - block:
        - name: Initialize Facts
          set_fact:
            playbook_failed: false

        - name: Install and configure hosts
          import_tasks: ../../Tasks/scaleout/ScaleOutRunInstaller.yml
          ignore_errors: yes
          become: yes
          become_user: Administrator
          vars:
            scaleout_install_type: client
            ansible_become_user: '{{ service_user | default(ansible_user) }}'
            ansible_become_pass: '{{ service_password | default(ansible_password) }}'

被调用的任务文件片段

---
- name: Download and run Scaleout Installer
  block:
  - name: Create a temporary directory for the Scaleout installer
    win_tempfile:
      state: directory
    register: soss_installer_dir

  - name: Download Scaleout Installer
    win_get_url:
      url: "{{ installer_url }}"
      dest: "C:\\gcms\\soss.msi"
    retries: 3
    delay: 10

  - name: Run Scaleout Installer
    win_package:
      path: "C:\\gcms\\soss.msi"
      product_id: "{{ installer_product_id }}"
      creates_path: "{{ installer_install_path }}"
      arguments: '/i /quiet INSTALLLEVEL=500'
      state: present
    register: soss_msi_out

内容的提问来源于stack exchange,提问作者Adesh

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.18 03:40:36