Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Ansible 文档声明该ios_command模块是核心模块。但是,如果我寻找这方面的文档,我会得到:
ios_command
$ ansible-doc ios_command module ios_command not found in /usr/share/ansible:...
知道为什么吗?
请检查您的 Ansible 版本。 ios_command从 2.1 版开始可用。 当您的机器上有多个不同版本的 Ansible(如 apt 和 pip)时,也可能出现这种情况。
在我的机器上:
$ ansible --version ansible 2.1.2.0 $ ansible-doc -l | grep ios_command ios_command Run arbitrary commands on ios devices.