error using copy module in conjunction with become and with_items

This is the error:

`
fatal: [localhost]: FAILED! => {“failed”: true, “msg”: “ERROR! privilege output closed while waiting for password prompt:\nBECOME-SUCCESS-adezzvrxzmmrvcjmhockfqrcaofjafii\nd463cad77a9f7ca30d2eee449d151ffec7209a6b\n”}

`

Relevant file snippets to reproduce:
`

ansible.cfg

[defaults]
hostfile = ./hosts
retry_files_enabled = False

#./hosts
[local]
localhost ansible_connection=local

#test-priv-fails.yml