I am trying to list the files in a directory and copy to some other directory.

This is my playbook:

```
---
- hosts: testserver
  become: true
  tasks:
  - name: list files
    command: " ls /root/"
    register: r
  - debug: var=r

  - debug: msg="item.item={{item.item}}, item.stdout={{item.stdout}}, item.changed={{item.changed}}"
    with_items: "{{r.results}}"

```

This is the error I am getting:

> 
> FAILED! => {"msg": "'dict object' has no attribute 'results'"}
> 
> 
>