5

I am trying to use the Ansible nmcli module on a Debian 9 target. I am getting the following error:

This module requires NetworkManager glib API

The Ansible documentation says that I need NetworkManager-glib. On Centos and RHEL this package is very easy to find. But on Debian, I don't find it. I have install all Network-manager packets without success... Even libnm-glib4 package.

Mr.King
  • 133
  • 3
  • 13

2 Answers2

3

Install libnm-glib-dev and try again.

Eric Citaire
  • 4,355
  • 1
  • 29
  • 49
0

If look a the code, you can see that:

import  from gi.repository import NetworkManager, NMClient

So, you can conclude that the package python-gi is required. (Debian/Ubuntu).

apt-get install python-gi