>
> Hi again,
Thanks a lot for your reply.
I still don't understand what these code lines used for in my case:
tasks:
- add_host:
name: "{{ item.1 }}"
groups: "{{ item.0.group }}"
loop: "{{ lookup('subelements', my_hosts, 'hosts') }}"
can you please explain?
I understand that you have wrote for me a lookup on the files mentioned for
each lines which is exactly what I wanted. Now my intensions will be to
copy and paste hosts of each environment to the appropriate host file.
--
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/2ce19398-e468-4f09-ae29-2f3104e81595%40googlegroups.com.