name: copy public keys to users- for other environments authorized_key: user={{ item.username }} key="{{ lookup('file', '../files/{{ item.username }}.pub') }}" path='/home/{{ item.username }}/.ssh/authorized_keys' manage_dir=no with_items: - { username: 'xxxxxxxx' } - { username: 'xxxxxxxx' } - { username: 'xxxxxxxx' }  Getting following error while running the above ansible code.
fatal: [xxxxxx.xxxx.com] => Failed to template user={{ item.username }} key="{{ lookup('file', '../files/{{ item.username }}.pub') }}": could not locate file in lookup: ../files/{{ item.username }}.pub