From b3557bc6cf0e389459f4924fb81144fafe00b996 Mon Sep 17 00:00:00 2001 From: Yujun Zhang Date: Fri, 21 Apr 2017 17:03:57 +0800 Subject: Fix issues when running qtip first time - results folder not created - hostkey check should be skipped Change-Id: I658f5c459617d1651eec360edd53a8766f7387c1 Signed-off-by: Yujun Zhang --- resources/roles/qtip-workspace/files/copy/run.yml | 7 +++++++ resources/roles/qtip-workspace/files/copy/setup.yml | 3 +-- resources/roles/qtip-workspace/files/render/ansible.cfg | 1 + 3 files changed, 9 insertions(+), 2 deletions(-) (limited to 'resources/roles/qtip-workspace/files') 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 }}" diff --git a/resources/roles/qtip-workspace/files/render/ansible.cfg b/resources/roles/qtip-workspace/files/render/ansible.cfg index 2d4b0b1d..8616fa97 100644 --- a/resources/roles/qtip-workspace/files/render/ansible.cfg +++ b/resources/roles/qtip-workspace/files/render/ansible.cfg @@ -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 -- cgit 1.2.3-korg