Restore rsync functionality for jenkins

be6f1527c8 broke rsync when run via jenkins.
This commit partially reverts the change checking if running via zuul,
otherwise it restores the old syntax.

Change-Id: I1d66adf0cfe58570fa3fa581e768ed65f7076e9a
This commit is contained in:
Luca Miccini 2019-05-22 09:33:42 +02:00
parent 256a057941
commit af8cd25a2d
1 changed files with 4 additions and 0 deletions

View File

@ -10,7 +10,11 @@
- name: Copy ha-test-suite on controllers
shell: >
{% if (undercloud_user == 'zuul') and (zuul.projects is defined) -%}
/usr/bin/rsync --delay-updates -F --compress --archive -e 'ssh -F {{ local_working_dir }}/ssh.config.ansible' /home/{{ undercloud_user }}/src/opendev.org/openstack/tripleo-ha-utils/tools/ha-test-suite {{ hostvars[item]['ansible_hostname'] }}:
{%- else -%}
/usr/bin/rsync --delay-updates -F --compress --archive -e 'ssh -F {{ local_working_dir }}/ssh.config.ansible' {{ local_working_dir }}/tripleo-ha-utils/tools/ha-test-suite {{ hostvars[item]['ansible_hostname'] }}:
{%- endif -%}
delegate_to: "localhost"
with_items:
- "{{ groups['controller'] }}"