【发布时间】:2021-10-08 14:03:26
【问题描述】:
大家好,我是 Ansible 的新手,我目前正在尝试运行将安装 IIS 的剧本。
当我尝试 ping 到主机服务器(Windows 10 专业版 - 主机服务器)时,我已经配置了所有内容并收到消息成功 我正在使用 WSL(Windows 子系统 linux)也是 Windows 10 专业版的本地计算机运行剧本。
我要运行的脚本是:
---
- name: Install IIS
hosts: win
gather_facts: true
tasks:
- win_feature:
name: "Web-Server"
state: present
restart: yes
include_sub_features: yes
include_management_tools: yes
但我不断收到此错误:
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: at <ScriptBlock>, <No file>: line 8
fatal: [MY IP SERVER-censored]: FAILED! => {"changed": false, "msg": "Unhandled exception while executing module: The specified module 'ServerManager' was not loaded because no valid module file was found in any module directory."}
我也尝试安装服务器管理器来解决问题,但说实话并没有帮助。
正如我所说,我是 Ansible 的新手,并且仍在学习中。 我将不胜感激任何帮助。 谢谢。
【问题讨论】: