in constants.py:

VARIABLE_PRECEDENCE       = get_config(p, DEFAULTS, 'precedence',
'ANSIBLE_PRECEDENCE',
['all_inventory', 'groups_inventory', 'all_plugins_inventory',
'all_plugins_play', 'groups_plugins_inventory',
'groups_plugins_play'], value_type='list')

Which would allow you to switch the group vars precedence, the above
list is the default and matches the current docs.



On Tue, May 23, 2017 at 10:12 AM, Szabolcs Póta <szabolcs.p...@gmail.com> wrote:
> Hi Brian,
>
> Thank you for the answer. I have read through your inventory plugin proposal
> JIRA, PR and docs but cannot see where precedence can actually be
> configured. I see that inventory types are now nicely refactored to be
> handled by plugins and that they can be enabled or disabled but can't see
> where precedence is set.
>
> Could you please give me the necessary config option? (The above links do
> redirect me and the pages jump around so probably pasting here directly is
> better). What I would like is to have INI with higher precedence than
> group_vars relative to inventory files.
>
> Thanks,
>
> Szabolcs
>
>
> On Monday, May 22, 2017 at 5:26:22 PM UTC+2, Brian Coca wrote:
>>
>> I might have a 'solution' ... configurable precedence, this is
>> something I've been toying with in
>> http://github.com/ansible/ansible/issues/23001.
>>
>> config setting (need to add to examples/ansible.cfg) :
>>
>> https://github.com/ansible/ansible/pull/23001/files#diff-b77962b6b54a830ec373de0602918318R249
>>
>> draft implementation:
>>
>> https://github.com/ansible/ansible/pull/23001/files#diff-473ef6db3f086739e3c053f001d731b5R257
>>
>>
>> ----------
>> Brian Coca
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Development" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-devel+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



-- 
----------
Brian Coca

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CACVha7cdF7KEKagTap7PPj1X4wuazZFR993-_CrYJcod4CT17g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to