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:
Jeremy Stanley 2020-02-24 19:30:20 +00:00
parent f05f26b1ca
commit f607fd9a24

View File

@ -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 - name: Upload contents to AFS
synchronize: synchronize:
src: "{{ afs_source }}" src: "{{ afs_source }}"