On 08.07.2019 15:30, Pierre Ochsenbein wrote:
> *Template file: pg_hba.conf.j2*
> }} {{ hostvars[slave]*['ansible_all_ipv4_addresses']*
> }}/32 {{ postgresql_default_ipv4_auth_method }}
> {% endfor %}
>
>
> *Configuration file: pg_hba.conf.j2*
> host database user * [u'*10.123.214.7*']*/32
> md5
>
> How I can adapt my template file to remove this character in my
> configuration file *[u' ….. **'] ?*
If the server just have one IP you probably should use
ansible_default_ipv4.address instead if ansible_all_ipv4_addresses.
If the server have multiple IP that you would like to include you would need to loop over ansible_all_ipv4_addresses since it is a list of all IP on the server.
--
Kai Stian Olstad