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
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/cda6df53-9ab7-4b1e-958d-007f5567878a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.