diff options
author | 2017-04-21 17:03:57 +0800 | |
---|---|---|
committer | 2017-04-21 17:05:49 +0800 | |
commit | b3557bc6cf0e389459f4924fb81144fafe00b996 (patch) | |
tree | 2f6834bc6dc813dc78aa16e1d32cd2215bdeb224 /resources/roles/qtip-workspace/files/copy | |
parent | 1f8e4ddcc850e59909778cc583811353f338001a (diff) |
Fix issues when running qtip first time
- results folder not created
- hostkey check should be skipped
Change-Id: I658f5c459617d1651eec360edd53a8766f7387c1
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
Diffstat (limited to 'resources/roles/qtip-workspace/files/copy')
-rw-r--r-- | resources/roles/qtip-workspace/files/copy/run.yml | 7 | ||||
-rw-r--r-- | resources/roles/qtip-workspace/files/copy/setup.yml | 3 |
2 files changed, 8 insertions, 2 deletions
diff --git a/resources/roles/qtip-workspace/files/copy/run.yml b/resources/roles/qtip-workspace/files/copy/run.yml index 85dfb426..f84ea46c 100644 --- a/resources/roles/qtip-workspace/files/copy/run.yml +++ b/resources/roles/qtip-workspace/files/copy/run.yml @@ -16,9 +16,16 @@ - 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 diff --git a/resources/roles/qtip-workspace/files/copy/setup.yml b/resources/roles/qtip-workspace/files/copy/setup.yml index 4fa75579..5b4677e9 100644 --- a/resources/roles/qtip-workspace/files/copy/setup.yml +++ b/resources/roles/qtip-workspace/files/copy/setup.yml @@ -42,10 +42,9 @@ - hosts: localhost tasks: - - name: create output directories + - name: create cache directory file: path: "{{ item }}" state: directory with_items: - "{{ qtip_cache }}" - - "{{ qtip_results }}" |