a016a1a565
I noticed this by accident when I ran ansible-lint over this repo from an outside context; it didn't use the .yamllint in here and started compalining about eof whitespace. After scratching my head for a bit as to why this didn't fail here, I realised we've allowed various newlines since the initial commit I936fe2c997597972d884c5fc62655d28e8aaf8c5. Remove this and just use the default eof rules, and fixup the whitespace as required. This is fairly unimportant, but is nice for consistency. Change-Id: Idb46a1f39ba798b0bf70eaa27b4c6b4758ce3d26
19 lines
582 B
YAML
19 lines
582 B
YAML
- 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
|
|
mode: 0755
|
|
- name: Upload contents to AFS
|
|
synchronize:
|
|
src: "{{ afs_source }}"
|
|
dest: "{{ afs_target }}"
|
|
# NOTE(ianw): you can't set group permissions on AFS, hence we
|
|
# don't set owner specifically.
|
|
archive: false
|
|
perms: true
|
|
times: true
|
|
recursive: true
|
|
rsync_opts: '{{ ["--safe-links"] + ["--delete-after"] if not afs_copy_only else [] }}'
|