I’m working on updating the cobbler inventory plugin to add ansible_group_priority
to various groups that it creates. I’m trying to figure out if it is doing what I want. Is there any way to dump the final inventory that includes ansible_group_priority
? ansible-inventory --list
does not appear to do it.
There is no current way, the variable gets ‘absorbed’ into a group property and there is no way to export it or query it.
I should add it to --export
as a variable when non 0.
Oh wait … i already did that … just forgot. Inv export (#36188) · ansible/ansible@b403653 · GitHub
1 Like
Thanks, I should have tried that but I guess was scared off by the not as an accurate representation of how Ansible has processed it
wording.
which is true, as ansilbe_group_priority
is not available in the play, but it does represent a ‘reusable’ inventory as close to original as possible.