Problem with ansible 1.8.2 copy:

25 views
Skip to first unread message

Tore Lindberg Åbodsvik

unread,
Jan 9, 2015, 6:49:03 AM1/9/15
to ansible...@googlegroups.com
Ansible V. 1.8.2 fails with copy:

Following book

---
- hosts: host
  tasks:

  - include_vars: ./packages/files/global_vars.yml

  - copy: src=/tmp/demo dest=/tmp/demo


fails with the following error:


TASK: [copy src=/tmp/demo dest=/tmp/demo] ************************************* 
fatal: [192.168.33.10] => template error while templating string: unexpected '/'

Any one else seeing this?

-Tore

Brian Coca

unread,
Jan 9, 2015, 5:47:01 PM1/9/15
to ansible...@googlegroups.com
I'm guessing there is a problem in your global_vars.yml file


--
Brian Coca

Tore Lindberg Åbodsvik

unread,
Jan 13, 2015, 4:22:09 AM1/13/15
to ansible...@googlegroups.com
I guess you're right, thanks :) 
Embarrassing that i did not check without that file before posting.
But the same file have worked in earlier versions of ansible, so that had me fooled. 

-Tore
Reply all
Reply to author
Forward
0 new messages