Reply
Highlighted

Issues with infoblox-client in Ansible.

LennertB
Techie
Posts: 1
941     0

Hi!

 

I experience some issues using the infoblox-client in Ansible. We want to automate some of our Infoblox tasks and I'm trying to do just that with the help of Ansible.

 

I created an initial playbook using the "lookup" module provided by the infoblox-client to fetch a host record. But upon running the playbook i get the following error/message:

 

fatal: [***.***.***.***]: FAILED! => {"msg": "An unhandled exception occurred while running the lookup plugin 'nios'. Error was a <type 'exceptions.Exception'>, original message: infoblox-client is required but does not appear to be installed.  It can be installed using the command `pip install infoblox-client`"}

This is strange because the infoblox-client module has been installed and is listed when performing the "pip list" command.

 

The playbook looks as followed:

 

 

---
- hosts: ********
  connection: local
  vars:
    nios_provider:
      host: ********
      username: ********
      ssl_verify: no
  tasks:
    - name: Fetch host test
      set_fact:
         host: "{{ lookup('nios', 'record:host', filter={'name': 'test.ansible.com'}, provider=nios_provider) }}"
...

Anybody has experience with this issue or knows how to deal with it?

 

Thanks in advance

 

Lennert

 

Showing results for 
Search instead for 
Do you mean 

Recommended for You