Refer this link: https://docs.ansible.com/ansible/2.7/user_guide/playbooks_loops.html?highlight=nested%20loops#with-list
On Sat, May 30, 2020, 22:47 Kannappan M <[email protected]> wrote: > Hi Team, > > Recently i came to know that with.list is getting retired , so > what it is the replacement of it. > > For eg using the filesystem module i need to format the list of > disc please let me know which format is correct first one or the > second one > > -name:Format the disk > filesystem: > fstype: xfs > dev: > - /dev/sda1 > - /dev/sdb1 > - /dev/sdc1 > - /dev/sdd1 > - /dev/sde1 > > > -name:Format the disk > filesystem: > fstype: xfs > dev: > name: > - /dev/sda1 > - /dev/sdb1 > - /dev/sdc1 > - /dev/sdd1 > - /dev/sde1 > > -- > 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/87b602b4-aceb-4087-b5e9-96ee49e83cbd%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/87b602b4-aceb-4087-b5e9-96ee49e83cbd%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CAEFccTUx6mb74qypfo07h-yh2WKBRLD1yFNH8KGc%3DfXnhAzhTg%40mail.gmail.com.
