我正在尝试在 ansible Tower 上运行剧本,但在加载额外模块时遇到问题。我检查了剧本的配置是否正确,但仍然失败并显示以下消息...
[WARNING]: Invalid characters were found in group names but not replaced, use
-vvvv to see details
ERROR! couldn't resolve module/action 'ansible.windows.win_package'. This often indicates a misspelling, missing collection, or incorrect module path.
The error appears to be in '/tmp/bwrap_371_vfy0csh9/awx_371_vu6g6dfa/project/windows-playbook.yml': line 5, column 7, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- name: Test Install
^ here
我可能是盲人,但我如何让 ansible tower 加载这些模块?我不确定它是我错过的设置还是剧本本身需要额外的配置......任何帮助将不胜感激。我将在下面弹出我的剧本。
---
- hosts: all
tasks:
- name: Test Install
ansible.windows.win_package:
path: \\FILESHARE\data\Software\Installer.msi
arguments: '/q /norestart'
state: present