我试图通过我的Fedora 23服务器上的Fedora客户端设置我的firewalld (是的,我喜欢fedora :D )。
然而,每次我尝试使用包括firewalld (例如- firewalld: service=https permanent=true state=enabled)在内的一些命令来执行一个剧本时,剧本的执行都会失败,其中包含以下消息:
failed: [w.x.y.z] => {"failed": true, "parsed": false}
failed=True msg='firewalld required for this module'我已经在远程服务器上启动并运行了:
# firewall-cmd --version
0.3.14.2在我的电脑上:
$ ansible --version
ansible 1.9.4
configured module search path = None有人知道它从哪里来吗?谢谢!
--
编辑:在this line in Ansible source code,防火墙库似乎没有被导入(并执行显示没有防火墙的错误)。然而,这个库存在于Python3中,而不是Ansible使用的Python2中。
$ locate firewall
[...]
/usr/lib/python3.4/site-packages/firewall
[...]我会继续搜索,但如果有人有主意.
发布于 2015-11-24 22:52:51
我找到了解释和解决办法:
在编辑之后,我安装了python-firewall,它是python2的firewalld绑定。但是,执行是不正确的,因为没有驾驶舱。所以我也得安装驾驶舱..。
长话短说,这就是我在远程机器上所做的:
# dnf install python-firewall cockpit -y https://stackoverflow.com/questions/33904917
复制相似问题