Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set variable for ipv4addrs in nios_inventory.py #271

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

dmnagornyi
Copy link

@dmnagornyi dmnagornyi commented Oct 31, 2024

Set inventory variable for ipv4addrs and mapped to ipv4addr attribute.

Without this line plugin gets ipv4addrs list from wapi but doesn't compose host variable in inventory.

RESULT:

[root@testhost]# INFOBLOX_MAX_RESULTS=1 ansible-inventory -i inventory.yml --list  --yaml
all:
  children:
    infoblox_hosts:
      hosts:
        testhost:
          Data Center: TestDatacenter
          Device Type: Server
          Site: TestSite
          ipv4addrs:
          - 192.168.1.1
          - 192.168.1.2
          view: 'DefaultView'

Set inventory variable for 'ipv4addrs'
@dmnagornyi dmnagornyi changed the title Update nios_inventory.py Set variable for 'ipv4addrs' in nios_inventory.py Oct 31, 2024
@dmnagornyi
Copy link
Author

@JkhatriInfobox please take a look when you have a chance. Do you need anything else to approve it?

@dmnagornyi dmnagornyi changed the title Set variable for 'ipv4addrs' in nios_inventory.py Set variable for ipv4addrs in nios_inventory.py Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant