# register + with\_items help

**URL:** <https://forum.ansible.com/t/register-with-items-help/13392>\
**Category:** Ansible Project\
**Created:** [August 30, 2013, 2:56pm UTC](https://forum.ansible.com/t/register-with-items-help/13392 "2013-08-30T14:56:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevin\_fernandes](https://avatars.discourse-cdn.com/v4/letter/k/db5fbb/32.png) [@kevin\_fernandes](https://forum.ansible.com/u/kevin_fernandes)\
**Post date:** [August 30, 2013, 2:56pm UTC](https://forum.ansible.com/t/register-with-items-help/13392/1 "2013-08-30T14:56:28Z")

</div>

Hi All.

I have a simple playbook with the following play

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [August 30, 2013, 3:07pm UTC](https://forum.ansible.com/t/register-with-items-help/13392/2 "2013-08-30T15:07:25Z")

</div>

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!
