Delegate FTP publisher to 127.0.0.1

We want ansible to run lftp on our zuul-launcher servers, not our
remote nodes.

Change-Id: I0ec9182ce431c9421df8633717f78fc0d3b683f3
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger
2016-06-11 12:01:56 -04:00
parent 7edacc6f4e
commit b55a4d15dd

View File

@@ -927,7 +927,8 @@ class NodeWorker(object):
when='success')
tasks.append(task)
task = dict(shell='lftp -f %s' % ftpscript,
when='success')
when='success',
delegate_to='127.0.0.1')
ftpsource = ftpcontent
if ftp.get('remove-prefix'):
ftpsource = os.path.join(ftpcontent, ftp['remove-prefix'])