Infoblox’s global team of threat hunters uncovers a DNS operation with the ability to bypass traditional security measures and control the Great Firewall of China. Read about “Muddling Meerkat” and the many other threat actors discovered by Infoblox Threat Intel here.

Automation Scripts

Reply

ANSIBLE - Next Available Address Block , no option for adding Tags

New Member
Posts: 1
158     0

Hi All,

 

Is there really no options on adding Tags when using Next Available Address Block module? I might wrong on using the example playbook.


There is no option on adding tags based on example of creating next-available address blocks. Tried adding tags on below script, but to no avail.

 

---
- hosts: localhost
connection: local
collections:
- infoblox.b1ddi_modules

vars:
- host: "{{ Host server to connect to }}"
- api: "{{ api key to access the server }}"

tasks:
# Create a Address Block in a given IP space using next_available_address_block
- name: Create Address Block using next-available subnet
b1_ipam_address_block:
space: "qa-space-1"
address: '{"next_available_address_block": {"cidr": "28", "count": "5", "parent_block": "40.0.0.0/24"}}'
name: "qa-nextAvailable"
comment: "Created by QA using nextavailable"

tags:
- "Org": "Infoblox"
- "Dept": "Engineering"
api_key: "{{ api }}"
host: "{{ host }}"
state: present

 

https://github.com/infobloxopen/bloxone-ansible/blob/main/sample_playbook/ipam/address_block/create_...


I don't see the tags are being added when looking at the function "next_available_address_block" on module https://github.com/infobloxopen/bloxone-ansible/blob/main/ansible_collections/infoblox/b1ddi_modules...

 

 

On function create_address_block, I see the tags are being added as part of the payload.

Showing results for 
Search instead for 
Did you mean: 

Recommended for You

Demo: Infoblox IPAM plug-in integration with OpenStack Newton