Reply

Ansible - network_container error

New Member
Posts: 2
2596     0

Hi All

 

I'm trying to add a new network to a class B using Ansible.

 

I already have 120.120.0.0/16 configured as a network

 

However when i run this code

 

---
- hosts: nios
  connection: local
  tasks:
    - name: create a network infoblox
      set_fact:
        networkaddr: "{{ lookup('nios_next_network','120.120.0.0/16', cidr=24, provider=infoblox_vars) }}"

I get this error

TASK [create a network infoblox] **************************************************************************************************************************
task path: /home/rich/playbooks/infoblox/infoblox1-new-subnet.yml:5
fatal: [192.168.127.100]: FAILED! => {
    "msg": "An unhandled exception occurred while running the lookup plugin 'nios_next_network'. Error was a <class 'ansible.errors.AnsibleError'>, original message: unable to find network-container object 120.120.0.0/16"
}
	to retry, use: --limit @/home/rich/playbooks/infoblox/infoblox1-new-subnet.retry

Many thanks in advance for anyone assistance.

Cheers

Rich

Showing results for 
Search instead for 
Did you mean: 

Recommended for You