Trouble using compose #27
-
Hi, I am using ansible core 2.16.5 on debian 12 and pulled this netbird plugin via ansible-galaxy collection install dominion_solutions.netbird After some trouble getting it running (mostly due to me getting started with dynamic inventories) I am now getting a proper list of netbird devices out of the inventory. Additionally, the error message about invalid characters does not seem correct, there are no curly braces in. inventory.netbird.yml
ansible-inventory --list -i inventory.netbird.yml -vvvv
However, when I add any compose: to add variables (I started with adding a static value)
However, when I add this and run ansible-inventory --list -i inventory.netbird.yml -vvvv
I am using the hosted test version of netbird, if that makes a difference. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Good Morning @ipsecguy, First, thanks for using our Ansible Collection. Knowing that we've provided some sort of value to someone makes it worth it for us. I think I understand the problem. I missed an edge case where the groups could have spaces in the names. You may need to escape it with a backslash such as Please let us know if that helps. |
Beta Was this translation helpful? Give feedback.
-
After looking, this appears to definitely be a bug in the code. In the compose:
description: compose variables for Ansible based on jinja2 expression and inventory vars
default: False
required: False
type: boolean This is likely due to an earlier refactoring. Thank you for finding this bug. |
Beta Was this translation helpful? Give feedback.
-
@spam-n-eggs Yes, it solves the compose: problem! Yest, the error message on escapes is strange:
|
Beta Was this translation helpful? Give feedback.
Please upgrade to use version 0.2.0:
The issue has been resolved. Thanks again for pointing it out!