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

playbook fails on IP entries without hostname #1

Open
rderooy opened this issue Jan 9, 2021 · 0 comments
Open

playbook fails on IP entries without hostname #1

rderooy opened this issue Jan 9, 2021 · 0 comments

Comments

@rderooy
Copy link

rderooy commented Jan 9, 2021

In Netbox I had created some "Reserved" IP addresses, without hostname. But when running the ansible playbook, it fails with

FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: 'dict object' has no attribute 'interface'"}

When grabbing data from Netbox, it should probably only get the "Active" IP addresses. And IP addresses without hostname should probably just be ignored.

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

No branches or pull requests

1 participant