On Friday, 30 November 2018 13:12:17 CET srinivas a wrote:
>   - add_host:
>       name: "{{ip_addr}}"
>       groups: dynamically_created_hosts
>     with_items: "{{ip_addr.split(',')}}" 

with_items returns a variable containing the value.
So your name: need to be 
  name: "{{ item }}"

-- 
Kai Stian Olstad


-- 
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/73518315.aURZjDHSZ6%40x1.
For more options, visit https://groups.google.com/d/optout.

Reply via email to