[ansible-project] Remove a dict in a nested dict

2024-03-25 Thread Baptiste Doublet
Hi, I block on manipuling data with ansible / jinja2 / python filter. I have this yaml structure which is an ansible inventory in yaml ``` all: children: admin_administration: hosts: admin_administration1: server_ip: 127.0.0.1 int: children: int_admi

[ansible-project] Re: [HOSTVARS][MERGED] Unexpected behavior with merge variables of different host which are in several groups

2020-04-17 Thread Baptiste Doublet
ain ^^ atlanta: hosts: host1: host2: vars: ntp_server: ntp.atlanta.example.com proxy: proxy.atlanta.example.com Thanks again Racke ! Le mardi 14 avril 2020 11:39:36 UTC+2, Baptiste Doublet a écrit : > > Hi Everybody, > > I have a problem that I can't resolve on my

[ansible-project] Re: [HOSTVARS][MERGED] Unexpected behavior with merge variables of different host which are in several groups

2020-04-15 Thread Baptiste Doublet
;false" and dcs_type == "etcd" tags: [ etcd, etcd_cluster ] ``` Le mardi 14 avril 2020 11:39:36 UTC+2, Baptiste Doublet a écrit : > > Hi Everybody, > > I have a problem that I can't resolve on my own. > I want to deploy an etcd cluster with postgresql on the same servers &

[ansible-project] [HOSTVARS][MERGED] Unexpected behavior with merge variables of different host which are in several groups

2020-04-14 Thread Baptiste Doublet
Hi Everybody, I have a problem that I can't resolve on my own. I want to deploy an etcd cluster with postgresql on the same servers I have three servers and this is my inventory file: ``` all: children: etcd_cluster: # recommendation: 3 or 5-7 nodes hosts: demo_postgres1: vars: etcd_ip: '***' dem