Hi,
I need a list with the ip address of play_hosts. This template worked with 1.6.5, but it does not work with 1.9.3. I would appreciate any help, what could be wrong.
---
- hosts: test
vars:
galera_cluster_members: "{{ play_hosts|map('regex_replace','(.*)', \"{{ hostvars['\\\\1']['ansible_eth0']['ipv4']['address'] }}\")|list() }}"
tasks:
- name: register members
debug:
msg: "{{ galera_cluster_members }}"
Ansible: 1.9.3
Jinja: 2.7.2
thanks,
Tamas