Ansible开发模块-在哪里下载

Ansible开发模块-在哪里下载,ansible,Ansible,如何安装/下载Ansible开发模块 windows模块似乎是迁移到ansible集合的一部分,因此您可以在迁移后使用“普通”ansible 2.9安装来运行它们 实际含义是,您不太可能遵循Zeitounator的指示,因为这些windows模块不再存在于ansible repo中,因此使用pip install-e不会提供它们(除非您使用的git sha早于当前的devel) 然而,不管怎样,在你的问题中显示的ansible 2.6已经很老了,所以你无论如何都会想要一个现代版本到目前为止,我

如何安装/下载Ansible开发模块


windows模块似乎是迁移到ansible集合的一部分,因此您可以在迁移后使用“普通”ansible 2.9安装来运行它们

实际含义是,您不太可能遵循Zeitounator的指示,因为这些windows模块不再存在于ansible repo中,因此使用
pip install-e
不会提供它们(除非您使用的git sha早于当前的
devel


然而,不管怎样,在你的问题中显示的ansible 2.6已经很老了,所以你无论如何都会想要一个现代版本

到目前为止,我发现我们可以从ansible Galaxy下载

win_service_信息可从下面获得


如mdaniel所述,它需要Ansible 2.9。

您必须或等待包含
win\u service\u info
模块的下一个版本发布,但您必须添加一个以获得最新版本或更改安装方法(和我)。请允许我向新来者提供标准建议:如果您有答案,你将通过向未来的读者展示什么有效来帮助他们。要接受答案,请单击大标题✓ 答案左侧大数字下方的符号(您将获得2点声誉积分)。如果你至少有15个声望点,你也可以投票给其他有用的答案(也可以选择被接受的答案)。如果您的问题尚未解决,请提供反馈,或者,如果您自己找到了解决方案。
# rpm -qa |grep ansib
ansible-2.6.20-1.el7ae.noarch

# cat win-list-services.yml
---
- name: Get info for all installed services
  hosts: '{{ host }}'
  gather_facts: no
  vars:
    execute: false
  tasks:
  - name: Get info for all installed services
    win_service_info:
    register: servicelist


# ansible-playbook -v win-list-services.yml 
Using /etc/ansible/ansible.cfg as config file
ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path.

The error appears to be in '/root/playbook/win-list-services.yml': line 8, column 5, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  tasks:
  - name: Get info for all installed services
    ^ here