Howto Install nmcli extras module?

215 views
Skip to first unread message

Joanna Delaporte

unread,
Nov 23, 2015, 12:51:01 PM11/23/15
to Ansible Project
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

Brian Coca

unread,
Nov 23, 2015, 1:06:07 PM11/23/15
to Ansible Project
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.

--
Brian Coca

Joanna Delaporte

unread,
Nov 23, 2015, 1:24:35 PM11/23/15
to Ansible Project
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

Joanna Delaporte

unread,
Nov 23, 2015, 1:25:40 PM11/23/15
to Ansible Project
Hi Brian,

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

Thanks!
Joanna

Joanna Delaporte

unread,
Nov 23, 2015, 1:43:20 PM11/23/15
to Ansible Project
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."}

Joanna Delaporte

unread,
Nov 23, 2015, 1:54:24 PM11/23/15
to Ansible Project
 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. 
Reply all
Reply to author
Forward
0 new messages