Howto Install nmcli extras module?

Hi everyone,

I was trying to use the nmcli module this morning, and kept getting an error (ERROR: nmcli is not a legal parameter in an Ansible task or handler). Apparently, this module doesn’t ship with Ansible, as noted on the Extras Modules page. However, I don’t know how to install/configure an Extras module…can someone please enlighten me?

Thanks!
Joanna

The extras get installed with Ansible, you don't need to do anything.

The most probable cause is that the module was added in a version
newer than what you are using.

I have Ansible 1.9.4, installed via pip. Everything else seems to be working fine. Even though the extras modules supposedly are included by default, I seem to have no nmcli module in my modules directory:

$ ls /usr/share/ansible/
cloud/ messaging/ source_control/
commands/ monitoring/ system/
database/ net_infrastructure/ utilities/
files/ network/ web_infrastructure/
internal/ notification/
inventory/ packaging/

$ ls /usr/share/ansible/network/
get_url slurp uri

Hi Brian,

I just noticed now it is in version 2.0. Now to find instructions for installing that version…

Thanks!
Joanna

After installing 2.0.0 beta 3 from a tarball, do I need to do something to reload modules or plugins?

FAILED! => {“failed”: true, “msg”: “ERROR! Invalid shell type specified (bash), or the plugin for that shell type is missing.”}

I think I just needed to change /etc/ansible/ansible.cfg:

executable = /bin/bash

to

executable = /bin/sh

It is working now. I am pretty sure I needed to change that to /bin/bash for constrained sudo in the past, but I have changed how sudo is handled lately, so it might no longer be an issue.