2017-06-27 22 views
0

我想在Debian 9目标上使用Ansible nmcli模块。 我收到以下错误:Ansible nmcli模块 - 需求问题

This module requires NetworkManager glib API

的Ansible文档中说,我需要NetworkManager的-巧舌如簧。 在Centos和RHEL上这个包很容易找到。但在Debian上,我找不到它。我已经安装了所有网络管理器数据包,但没有成功......甚至是libnm-glib4软件包。

回答

1

安装libnm-glib-dev并重试。

-1

如果看起来的代码,你可以看到:

import from gi.repository import NetworkManager, NMClient 

所以,可以得出这样的结论包python-GI是必需的。 (于Debian/Ubuntu)。

apt-get install python-gi