register + with_items help

Hi All.

I have a simple playbook with the following play

BTW, wanted to point out a variable problem here:

you can just say

with_items: batch_ids

If you are talking about copying files when they don’t exist, you don’t need the above, just consult the copy docs and use the “force=no” parameter.

Existing files then won’t be overwritten.

Code will also look a lot cleaner as a result!