Add extra debugging for AFS rsync

Add the Ansible-standard rsync output format option to rsync, and
also output the filter file to the logs to aid in debugging.

Change-Id: I68daf93ee7f5d501e51ec90d201830a18c6e5a47
This commit is contained in:
James E. Blair 2016-11-01 07:52:42 -07:00
parent a126e32d30
commit b2d99edf67
1 changed files with 7 additions and 0 deletions

View File

@ -1249,9 +1249,16 @@ class NodeWorker(object):
delegate_to='127.0.0.1')
tasks.append(task)
task = dict(name='cat filter list',
shell='cat {filter}'.format(filter=filter_file),
when='success|bool',
delegate_to='127.0.0.1')
tasks.append(task)
# Perform the rsync with the filter list.
rsync_cmd = ' '.join([
'/usr/bin/rsync', '-rtp', '--safe-links', '--delete-after',
"--out-format='<<CHANGED>>%i %n%L'",
"--filter='merge {filter}'", '{src}/', '{dst}/',
])
mkdir_cmd = ' '.join(['mkdir', '-p', '{dst}/'])