Skip to content

Commit

Permalink
Revert "Use synchronize instead of ansible fetch (#506)"
Browse files Browse the repository at this point in the history
This reverts commit 90f6dca.

Signed-off-by: Michal Hajas <[email protected]>
  • Loading branch information
mhajas committed Nov 6, 2024
1 parent a318f91 commit 56f2bb4
Show file tree
Hide file tree
Showing 2 changed files with 182 additions and 81 deletions.
22 changes: 7 additions & 15 deletions ansible/roles/benchmark/tasks/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,11 @@
- template:
src: gatling.j2.rc
dest: "{{ kcb_home }}/bin/gatling.rc"

- name: Create gatling folder
delegate_to: localhost
file: path="{{ local_results_dir }}/gatling" state=directory

- name: Get Gatling return code
synchronize:
fetch:
src: "{{ kcb_home }}/bin/gatling.rc"
dest: "{{ local_results_dir }}/gatling/{{ inventory_hostname }}.rc"
mode: pull
flat: yes

- name: Fetch the latest Gatling results
block:
Expand All @@ -85,20 +80,17 @@
set_fact:
latest_results: "{{ results.files | sort(attribute='mtime') | last }}"
- debug: var=latest_results.path
- name: Create simulation folder
delegate_to: localhost
file: path="{{ local_results_dir }}/simulation" state=directory
- name: Fetch Simulation results
synchronize:
- name: Fetch Gatling results
fetch:
src: "{{ latest_results.path }}/simulation.log"
dest: "{{ local_results_dir }}/simulation/{{ inventory_hostname }}.log"
mode: pull
flat: yes

- name: Fetch the Gatling logs
synchronize:
fetch:
src: "{{ kcb_home }}/bin/gatling.log"
dest: "{{ local_results_dir }}/gatling/{{ inventory_hostname }}.log"
mode: pull
flat: yes

- name: Create the aggregate report locally
delegate_to: localhost
Expand Down
Loading

0 comments on commit 56f2bb4

Please sign in to comment.