partial dictionary merge available?

13 views
Skip to first unread message

Toni Mueller

unread,
Jun 1, 2020, 11:58:53 AM6/1/20
to ansible...@googlegroups.com

Hi,

I've just read that there is a way to merge dictionaries, to accumulate
values across the variable hierarchy, but it is supposed to be a very
bad idea. Would it be difficult to allow this merge feature on just a
select number of variables? Or is there a better way to deal with a
large inventory (3-4 digit numbers of items), which is unwieldy to begin
with?


Cheers,
Toni

Stefan Hornburg (Racke)

unread,
Jun 1, 2020, 12:05:20 PM6/1/20
to ansible...@googlegroups.com
Where does that inventory come from? Maybe you could use a dynamic inventory?

Regards
Racke

>
> Cheers,
> Toni
>


--
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.

signature.asc

Toni Mueller

unread,
Jun 1, 2020, 1:07:47 PM6/1/20
to ansible...@googlegroups.com

Hi Racke,

On Mon, Jun 01, 2020 at 06:05:03PM +0200, Stefan Hornburg (Racke) wrote:
> Where does that inventory come from? Maybe you could use a dynamic inventory?

so far, it's a static inventory. It will be a dynamic inventory once
this stuff is a bit more fleshed out - but the "cost" to have a dynamic
inventory, is significant: The relevant database servers are far away,
"messy", and quite slow. Therefore, I wanted to start with a static
inventory.


Cheers,
Toni
Reply all
Reply to author
Forward
0 new messages