Skip to content

Commit ededd71

Browse files
bshewaledanpawlik
andcommitted
Sync the src dir with all hosts in inventory in reproducer
Some files are required on the instance spawned by the reproducer. Co-Authored-By: Daniel Pawlik <dpawlik@redhat.com>
1 parent f818010 commit ededd71

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

roles/reproducer/tasks/configure_controller.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,15 @@
350350
name: sushy_emulator
351351
tasks_from: verify.yml
352352

353+
- name: Sync local repositories to other hosts
354+
delegate_to: localhost
355+
ansible.posix.synchronize:
356+
src: "{{ cifmw_reproducer_src_dir }}/"
357+
dest: "zuul@{{ item }}:{{ cifmw_reproducer_src_dir }}"
358+
archive: true
359+
recursive: true
360+
loop: "{{ groups['computes'] + groups['controllers'] }}"
361+
353362
# NOTE: src dir is synchronized in libvirt_layout.yml
354363
- name: Install ansible dependencies
355364
register: _async_dep_install

roles/reproducer/tasks/libvirt_layout.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,6 @@
4848
rsync -r {{ cifmw_reproducer_basedir }}/reproducer-inventory/
4949
zuul@controller-0:reproducer-inventory
5050
51-
- name: Push src dir to controller-0
52-
ansible.builtin.command: # noqa: command-instead-of-module
53-
cmd: >-
54-
rsync -r {{ cifmw_reproducer_src_dir }}/
55-
zuul@controller-0:src
56-
5751
- name: Run post tasks in OCP cluster case
5852
when:
5953
- _use_ocp | bool

0 commit comments

Comments
 (0)