Fix issues when running qtip first time 21/33621/1
authorYujun Zhang <zhang.yujunz@zte.com.cn>
Fri, 21 Apr 2017 09:03:57 +0000 (17:03 +0800)
committerYujun Zhang <zhang.yujunz@zte.com.cn>
Fri, 21 Apr 2017 09:05:49 +0000 (17:05 +0800)
- results folder not created
- hostkey check should be skipped

Change-Id: I658f5c459617d1651eec360edd53a8766f7387c1
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
resources/roles/qtip-workspace/files/copy/run.yml
resources/roles/qtip-workspace/files/copy/setup.yml
resources/roles/qtip-workspace/files/render/ansible.cfg

index 85dfb42..f84ea46 100644 (file)
 - hosts: compute
 
   pre_tasks:
+
   - name: check ssh connection
     ping:
 
+  - name: create result directory
+    file:
+      path: "{{ qtip_results }}/{{ inventory_hostname }}"
+      state: directory
+    delegate_to: localhost
+
   roles:
   - development-tools
 
index 4fa7557..5b4677e 100644 (file)
 
 - hosts: localhost
   tasks:
-  - name: create output directories
+  - name: create cache directory
     file:
       path: "{{ item }}"
       state: directory
     with_items:
       - "{{ qtip_cache }}"
-      - "{{ qtip_results }}"
index 2d4b0b1..8616fa9 100644 (file)
@@ -330,6 +330,7 @@ filter_plugins     = {{ qtip_package }}/qtip/ansible_library/plugins/filter
 # Leaving off ControlPersist will result in poor performance, so use
 # paramiko on older platforms rather than removing it, -C controls compression use
 #ssh_args = -C -o ControlMaster=auto -o ControlPersist=60s
+ssh_args = -o StrictHostKeyChecking=no
 
 # The base directory for the ControlPath sockets.
 # This is the "%(directory)s" in the control_path option