I use ansible to prepare some (unfortunately untidy) updates which consist 
of replacing old files by new files. Therefore I would need to

1. backup old files
2. copy new files

So I create for each update a playbook folder with
backup.yml -> saves the old files (loops over vars.yml)
copy.yml     -> copies the new files (loops over vars.yml)
vars.yml     -> defines where new files shall be copied to
(see tree below)

update2014-05-12/
|-- backup.yml
|-- copy.yml
|-- newfiles
|   |-- file1.jar
|   |-- file2.jar
|   |-- file3.jar
|   `--file4jar
|-- oldfiles
|
|-- vars.yml

The problem is now:
If in my copy.yml I copy from newfiles directory, the newfiles directory is 
not found (I posted my copy task below)

    - name: copy files
      synchronize:
        archive=no
        src=newfiles/{{item.1}}
        dest={{ item.0.dest_dir }}{{ item.1 }}
      with_subelements:
        - copy_files
        - files

*Is there a way to specify in a playbook where to look up files* (like the 
'files' directory in roles)?

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/583f0559-2a0c-4137-be9b-ffd6db346949%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to