I can't find anywhere, how can i get ip addresses of hosts in specific group
- hosts: opmon
tasks:
- lineinfile:
create: true
line: "host\t'op-monitor'\topmonitor\t{{ item}}/24\t\tmd5"
dest: /tmp/groups.txt
with_items: "{{ groups.nodes }}"
This playbook prints
host 'op-monitor' opmonitor node1.itarchive.home/24 md5
to pg_hba.conf
I need, that node1.itarchive.home will be in IP
Something like that:
host 'op-monitor' opmonitor 192.168.0.95/24 md5'
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/86a581a1-359d-4571-8959-56346aef1f08%40googlegroups.com.