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

2020-04-17 Thread Stefan Hornburg (Racke)
On 4/17/20 4:54 PM, Baptiste Doublet wrote: > Hi, > > That did the job: > etcd_cluster: # recommendation: 3 or 5-7 nodes >       hosts: >         demo_postgres1: >             etcd_ip: '***' > > I don't know why I used vars, maybe because I read a lot of ansible > documentation like How to

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

2020-04-17 Thread Baptiste Doublet
Hi, That did the job: etcd_cluster: # recommendation: 3 or 5-7 nodes hosts: demo_postgres1: etcd_ip: '***' I don't know why I used vars, maybe because I read a lot of ansible documentation like How to build your inventory and that cursed my brain ^^ atlanta:

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

2020-04-15 Thread Stefan Hornburg (Racke)
On 4/15/20 8:41 PM, Baptiste Doublet wrote: > Hi, > > thanks for your reply. > > Yeah that's it. etcd_ip and postgresql_ip are in separate host. But I don't > understand, there are already on the host > part, aren't it ? > what is the syntax you think of ? Try to remove vars: from your

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

2020-04-15 Thread Baptiste Doublet
Hi, thanks for your reply. Yeah that's it. etcd_ip and postgresql_ip are in separate host. But I don't understand, there are already on the host part, aren't it ? what is the syntax you think of ? This is the playbook which should get the etcd_ip ``` - hosts: etcd_cluster become: true