Connect the dots

“Progress doesn't come from early risers – progress is made by lazy men looking for easier ways to do things.” - Robert Heinlein

导航

如何在Mac系统里面更新 Ansible 的 Extra Modules

Posted on 2015-12-07 16:50  TOX  阅读(343)  评论(0编辑  收藏  举报

最近遇到一个问题

seport is not a legal parameter in an Ansible task or handler

 

原因是我本地 Ansible 的 Extra Modules 已经过时,需要更新。但是Ansible的官方文档只给了这么一句话

There should be no need to install this repo separately as it should be included in any Ansible install using the official documented methods.

 

只好自己折腾。。

 

命令如下

1 sudo su
2 cd /Library/Python/2.7/site-packages/ansible/modules 
3 mv extras extras.bak
4 git clone https://github.com/ansible/ansible-modules-extras.git extras

 

搞定