Hello *justjais.*

Thank you for your reply.
Check it again my playbook, I missed some..., "with_items:" indent issue. 
*jumping 
to conclusion!*

Case closed.

2018年11月2日金曜日 19時32分03秒 UTC+9 Sumit Jaiswal:
>
> Hi Shin,
>
> Following tasks should work as expected, and shall loop over input list by 
> one item each time. Just for reference:
>
> *Using with_items to loop over list:*
> tasks:
> - name: loop over items
>   debug:
>     msg: “{{ item }}”
>   with_items:
>   - item_1
>   - item_2
>
> *Using Loop to loop over list:*
> tasks:
> - name: loop over items
>   debug:
>     msg: “{{ item }}”
>   loop:
>   - item_1
>   - item_2
>
>
>  I want to know the issue/error you are facing when you are trying the 
> same with your custom module.
>
>
> *Regards,*
> Sumit Jaiswal
> alias: *justjais*
>
> On 02-Nov-2018, at 2:47 PM, Shin Fukuda <coffe...@gmail.com <javascript:>> 
> wrote:
>
>
> Hi Ansible Developers.
>
> I want to know how to use "with_items:" loop in my own custom module ?
>
> e.g.
>  tasks:
>    - name: "Something custom action"
>      my_first_mod:
>        name: "{{ item }}"
>      with_items:
>        - 'andres'
>        - 'lukas'
>
> Any help in where I've gone wrong with this would be much appreciated.
>
> - Shin.
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ansible Development" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to ansible-deve...@googlegroups.com <javascript:>.
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to