Remove hardcode from some playbooks 83/29983/1
authorwu.zhihui <wu.zhihui1@zte.com.cn>
Tue, 7 Mar 2017 17:42:26 +0000 (01:42 +0800)
committerwu.zhihui <wu.zhihui1@zte.com.cn>
Tue, 7 Mar 2017 17:42:26 +0000 (01:42 +0800)
Remove hardcode ($HOME/qtip_result) from these three
playbooks.

Change-Id: Iefcf0d4c6caf6be6b6888ff6abe4c36621666129
Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
qtip/driver/playbook/bwn_ng.yaml
qtip/driver/playbook/inxi.yaml
qtip/driver/playbook/top.yaml

index 9947785..f79bb04 100644 (file)
@@ -20,4 +20,6 @@
   when: ansible_os_family == "Debian"
 
 - name: Run bwm-ng
-  shell: bwm-ng -o plain -c 1 > $HOME/qtip_result/bwm-dump.log
\ No newline at end of file
+  shell: bwm-ng -o plain -c 1 > bwm-dump.log
+  args:
+    chdir: '{{ dest_path }}/'
\ No newline at end of file
index f6a0311..a06da04 100644 (file)
@@ -20,4 +20,6 @@
   when: ansible_os_family == "Debian"
 
 - name: Run inxi
-  shell: inxi -b -c0 -n > $HOME/qtip_result/inxi.log
+  shell: inxi -b -c0 -n > inxi.log
+  args:
+    chdir: '{{ dest_path }}/'
index 8de7e3d..6458433 100644 (file)
@@ -7,4 +7,6 @@
 # http://www.apache.org/licenses/LICENSE-2.0
 ##############################################################################
 - name: Collect cpu usage
-  shell: top -bn1 > $HOME/qtip_result/top.log
+  shell: top -bn1 > top.log
+  args:
+    chdir: '{{ dest_path }}/'