Precreate AFS target directory in upload
This works around missing parent directories in AFS, since rsync will create the target directory but not its parent directories. In cases where the parent directory does not yet exist, it's nice to create it automatically first, if we can. Change-Id: Ia136ea3a416d6085d1f6e277b4c071573c5660e4
This commit is contained in:
parent
f05f26b1ca
commit
f607fd9a24
@ -1,3 +1,9 @@
|
||||
- name: Precreate AFS target directory
|
||||
# rsync will create the target directory but not its parent directories
|
||||
# which may not yet exist
|
||||
file:
|
||||
path: "{{ afs_target }}"
|
||||
state: directory
|
||||
- name: Upload contents to AFS
|
||||
synchronize:
|
||||
src: "{{ afs_source }}"
|
||||
|
Loading…
Reference in New Issue
Block a user