I think you should have:
dev: “{{ item}}”
loop:
- /dev/sda1
Harry
On Sat, May 30, 2020 at 1:17 PM 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/CALYKJ25a_ejWgRcASMkyxbEJt7Sv1Ww6s%3DTM4XAEPFdcj1j5mA%40mail.gmail.com.