最近遇到一个问题
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.
只好自己折腾。。
命令如下
sudo su
cd /Library/Python/2.7/site-packages/ansible/modules
mv extras extras.bak
git clone https://github.com/ansible/ansible-modules-extras.git extras
搞定