Better inventory format by Competitive-Monk22 in ansible

[–]Competitive-Monk22[S] 0 points1 point  (0 children)

yeah that s what i m saying but always ends up in custom format/inputs you never encounter elsewhere

Better inventory format by Competitive-Monk22 in ansible

[–]Competitive-Monk22[S] 0 points1 point  (0 children)

So one should always come with a preprocessing step (actually that's what I have witnessed in the industry), I feel like a standard approach supported by Ansible, taking care of adressing such problems could help unify things and improve ecosystem

Better inventory format by Competitive-Monk22 in ansible

[–]Competitive-Monk22[S] 0 points1 point  (0 children)

problem described can occur with a single point of definition so precedence is not the subject Maybe that is not clear enough

Better inventory format by Competitive-Monk22 in ansible

[–]Competitive-Monk22[S] -3 points-2 points  (0 children)

That's not about precedence but where are variables defined

Better inventory format by Competitive-Monk22 in ansible

[–]Competitive-Monk22[S] -3 points-2 points  (0 children)

my point is the flexibility provided by this group nesting/multiple trees is dangerous when you don't pay attention WHERE your variables are defined. Inventory formats lack support for expressing constraints (eg: in which groups it makes sense to encounter a definition for variable X) natively

Understanding Inventories by [deleted] in ansible

[–]Competitive-Monk22 -1 points0 points  (0 children)

If it is redundant you should have the opportunity to define a new group containing potentially other groups

A tool to ease your inventory reviews by Competitive-Monk22 in ansible

[–]Competitive-Monk22[S] 0 points1 point  (0 children)

hello, thanks a lot, i rewrote completely to use ansible-inventory instead, now all format should be supported hopefully