diff options
Diffstat (limited to 'benchmarks/playbooks/fio.yaml')
-rw-r--r-- | benchmarks/playbooks/fio.yaml | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/benchmarks/playbooks/fio.yaml b/benchmarks/playbooks/fio.yaml index 3de237f2..813dc411 100644 --- a/benchmarks/playbooks/fio.yaml +++ b/benchmarks/playbooks/fio.yaml @@ -1,8 +1,11 @@ - - hosts: 127.0.0.1 + - hosts: localhost connection: local + gather_facts: no + tasks: - name: making fio directory file: path={{workingdir}}/{{Dest_dir}}/fio state=directory + - name: making temporary fio directory file: path={{workingdir}}/{{Dest_dir}}/fio/fio_temp state=directory @@ -10,8 +13,9 @@ - hosts: "{{role}}" become: yes remote_user: "{{username}}" + tasks: - - name: checking_home directory + - name: checking home directory shell: echo $HOME register: home_dir @@ -72,7 +76,7 @@ - name: copy results fetch: src={{home_dir.stdout}}/qtip_result/{{item}} dest={{workingdir}}/{{Dest_dir}}/fio/fio_temp - with_items: files_to_copy.stdout_lines + with_items: "{{files_to_copy.stdout_lines}}" - name: registering log files shell: (cd $HOME/qtip_result/; find . -maxdepth 1 -name "*.log") | cut -d'/' -f2 @@ -80,17 +84,22 @@ - name: copying log results fetch: src={{home_dir.stdout}}/qtip_result/{{item}} dest={{workingdir}}/{{Dest_dir}}/fio/fio_temp - with_items: copy_log_results.stdout_lines + with_items: "{{copy_log_results.stdout_lines}}" - - hosts: 127.0.0.1 + - hosts: localhost connection: local + gather_facts: no + tasks: - name: extracting_json shell: ( find {{workingdir}}/{{Dest_dir}}/fio/fio_temp/ -name "*.json" | xargs cp -t {{workingdir}}/{{Dest_dir}}/fio/) + - name: making_logs_folder shell: mkdir -p {{workingdir}}/{{Dest_dir}}/fio/logs + - name: extracting_log shell: ( find {{workingdir}}/{{Dest_dir}}/fio/fio_temp/ -name "*.log" | xargs cp -t {{workingdir}}/{{Dest_dir}}/fio/logs) + - name: removing fio_log shell: rm -rf {{workingdir}}/{{Dest_dir}}/fio/fio_temp |