ansible lookup dig报错

fatal: [localhost]: FAILED! => {"failed": true, "msg": "An unhandled exception occurred while running the lookup plugin 'dig'. Error was a, original message: Can't LOOKUP(dig): module dns.resolver is not installed"}

报错解决方案:

安装dnspython

在官网下载http://www.dnspython.org/安装包,python setup.py install安装即可

你可能感兴趣的:(ansible lookup dig报错)