我有这个错误
错误!无法解析模块/操作'community.general.timezone'
操作系统为RedHat 8;Ansible version 2.9.27
所以,我通过ansible-galaxy
安装了缺失的集合,但我仍然得到相同的错误。
如何使Ansible识别已安装的集合?
# ansible-galaxy collection install community.general
Process install dependency map
Starting collection install process
Installing 'community.general:6.1.0' to '/root/.ansible/collections/ansible_collections/community/general'
你应该升级Ansible
Ansible 2.9将于2022年5月23日到期,缺少一些重要的收集功能,这些功能需要在收集端进行变通。community.general
集合在v5.0.0中停止支持Ansible 2.9时删除了这些解决方法。