Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Ansible - network_container error
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2018 07:51 AM
2597     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
Labels: