- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
ANSIBLE - Next Available Address Block , no option for adding Tags
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2024 07:21 PM
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
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.