TASK [Copy files into target directories] ************************************** fatal: [localhost]: FAILED! => {"failed": true, "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'ansible.vars.unsafe_proxy.AnsibleUnsafeText object' has no attribute 'dest'\n\nThe error appears to have been in '/etc/ansible/playbooks/copy.yml': line 18, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n - name: Copy files into target directories\n ^ here\n"}
Kai Stian Olstad
unread,
Jul 8, 2017, 5:59:32 PM7/8/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
On 08. juli 2017 23:52, Anfield wrote:
> Trying to get a playbook working with yml file containing 2 lists and
> passing that into the main file to loop over.
>
> Can someone help with letting me know what I'm doing wrong? Thanks
>
> copylist.yml
> ---
> copylist:
> src:
> - /home/ansible/tom/tom.txt
> - /home/ansible/fred/fred.txt
> dest:
> - /home/ansible/tom1
> - /home/ansible/fred1