promote-deployment: use upload-afs-synchronize
The prior change Ie8fcf62706cd69f20e29bc1f2f29c5d266ff443f updated some incorrect rsync copy flags to work around AFS permissions. This was something already figured out by the upload-afs-synchronize role which was intended to be a generic way to upload things to AFS with the synchronize module (used by tarball and other artifact publishing). Use it instead to standardise the way we copy. Change-Id: I49afb49dd8301abec44c2aacddb8c62e73e0eb02
This commit is contained in:
parent
808478ad2c
commit
e3aac5cea7
@ -44,13 +44,12 @@
|
|||||||
dest: "{{ src_dir }}"
|
dest: "{{ src_dir }}"
|
||||||
loop: "{{files.files}}"
|
loop: "{{files.files}}"
|
||||||
- name: Upload to AFS
|
- name: Upload to AFS
|
||||||
synchronize:
|
include_role:
|
||||||
delete: yes
|
name: upload-afs-synchronize
|
||||||
recursive: yes
|
vars:
|
||||||
src: "{{ src_dir }}/"
|
afs_source: '{{ src_dir }}/'
|
||||||
dest: "{{ target_dir }}/"
|
afs_target: '{{ target_dir }}/'
|
||||||
owner: false
|
afs_copy_only: false
|
||||||
group: false
|
|
||||||
delegate_to: "{{ inventory_hostname }}"
|
delegate_to: "{{ inventory_hostname }}"
|
||||||
- name: Destroy AFS token
|
- name: Destroy AFS token
|
||||||
include_role:
|
include_role:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user