summaryrefslogtreecommitdiffstats
path: root/qtip/driver/playbook/dpi/run.yaml
diff options
context:
space:
mode:
authorzhihui wu <zhihui.wu2006+zte@gmail.com>2017-03-10 04:14:45 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-03-10 04:14:45 +0000
commit16ae1eae90cf0fcdb82def11eef6016e4f5f4a50 (patch)
tree5b42bae3ce5264b6010de9125012a1a6e6762f7c /qtip/driver/playbook/dpi/run.yaml
parent3a0d983022a8a670fe930ca9da76ec1403afdfe7 (diff)
parent628d8e4f591290671172dd79017e1b40cba0c1e6 (diff)
Merge "modify logfile directory structure"
Diffstat (limited to 'qtip/driver/playbook/dpi/run.yaml')
-rw-r--r--qtip/driver/playbook/dpi/run.yaml14
1 files changed, 5 insertions, 9 deletions
diff --git a/qtip/driver/playbook/dpi/run.yaml b/qtip/driver/playbook/dpi/run.yaml
index 58f7eb2f..f4c8c457 100644
--- a/qtip/driver/playbook/dpi/run.yaml
+++ b/qtip/driver/playbook/dpi/run.yaml
@@ -12,22 +12,18 @@
remote_user: root
tasks:
- - name: Get current timestamp
- set_fact:
- timestamp: "{{ lookup('pipe', 'date +%Y-%m-%d-%H-%M') }}"
-
- name: Make some directories needed
file:
- path: '{{ ansible_env.HOME }}/qtip_result/{{ timestamp }}/{{ ansible_hostname }}'
+ path: '{{ ansible_env.HOME }}/qtip_result/{{ ansible_hostname }}/dpi/'
state: directory
- include: ../inxi.yaml
vars:
- dest_path: '{{ ansible_env.HOME }}/qtip_result/{{ timestamp }}/{{ ansible_hostname }}'
+ dest_path: '{{ ansible_env.HOME }}/qtip_result/{{ ansible_hostname }}/dpi/'
- include: ../top.yaml
vars:
- dest_path: '{{ ansible_env.HOME }}/qtip_result/{{ timestamp }}/{{ ansible_hostname }}'
+ dest_path: '{{ ansible_env.HOME }}/qtip_result/{{ ansible_hostname }}/dpi/'
- name: Run nDPI benchmark
shell: ./dpi_average.sh
@@ -37,10 +33,10 @@
- name: Copying result and system info to qtip result directory
command: cp $HOME/tempD/nDPI/example/dpi_dump.txt ./
args:
- chdir: '{{ ansible_env.HOME }}/qtip_result/{{ timestamp }}/{{ ansible_hostname }}'
+ chdir: '{{ ansible_env.HOME }}/qtip_result/{{ ansible_hostname }}/dpi/'
- name: Fetch result files to local manchine
synchronize:
mode: pull
src: '{{ ansible_env.HOME }}/qtip_result/'
- dest: '{{ result_dir }}/dpi/logs/'
+ dest: '{{ result_dir }}/'