Revert "Merge workspace files into one folder" 09/33909/1
authorYujun Zhang <zhang.yujunz@zte.com.cn>
Thu, 27 Apr 2017 01:15:40 +0000 (09:15 +0800)
committerYujun Zhang <zhang.yujunz@zte.com.cn>
Thu, 27 Apr 2017 01:26:38 +0000 (09:26 +0800)
This reverts commit e6da6749be6e5143855a48c866de2cd03789d2e8.

Change-Id: Ieac19a1526e7a5515923b8258079af3a1faaa56b
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
15 files changed:
resources/ansible_roles/qtip-workspace/files/custom/ansible.cfg [moved from resources/ansible_roles/qtip-workspace/files/workspace/ansible.cfg with 100% similarity]
resources/ansible_roles/qtip-workspace/files/custom/group_vars/all.yml [moved from resources/ansible_roles/qtip-workspace/files/workspace/group_vars/all.yml with 100% similarity]
resources/ansible_roles/qtip-workspace/files/custom/host_vars/localhost.yml [moved from resources/ansible_roles/qtip-workspace/files/workspace/host_vars/localhost.yml with 100% similarity]
resources/ansible_roles/qtip-workspace/files/custom/hosts [moved from resources/ansible_roles/qtip-workspace/files/workspace/hosts with 100% similarity]
resources/ansible_roles/qtip-workspace/files/defaults/fixtures/case.json [moved from resources/ansible_roles/qtip-workspace/files/workspace/fixtures/case.json with 100% similarity]
resources/ansible_roles/qtip-workspace/files/defaults/fixtures/pod.json [moved from resources/ansible_roles/qtip-workspace/files/workspace/fixtures/pod.json with 100% similarity]
resources/ansible_roles/qtip-workspace/files/defaults/fixtures/project.json [moved from resources/ansible_roles/qtip-workspace/files/workspace/fixtures/project.json with 100% similarity]
resources/ansible_roles/qtip-workspace/files/defaults/group_vars/.gitkeep [new file with mode: 0644]
resources/ansible_roles/qtip-workspace/files/defaults/host_vars/.gitkeep [new file with mode: 0644]
resources/ansible_roles/qtip-workspace/files/defaults/run.yml [moved from resources/ansible_roles/qtip-workspace/files/workspace/run.yml with 98% similarity]
resources/ansible_roles/qtip-workspace/files/defaults/setup.yml [moved from resources/ansible_roles/qtip-workspace/files/workspace/setup.yml with 96% similarity]
resources/ansible_roles/qtip-workspace/files/defaults/teardown.yml [moved from resources/ansible_roles/qtip-workspace/files/workspace/teardown.yml with 96% similarity]
resources/ansible_roles/qtip-workspace/files/defaults/templates/hosts [moved from resources/ansible_roles/qtip-workspace/files/workspace/templates/hosts with 94% similarity]
resources/ansible_roles/qtip-workspace/files/defaults/templates/ssh.cfg [moved from resources/ansible_roles/qtip-workspace/files/workspace/templates/ssh.cfg with 94% similarity]
resources/ansible_roles/qtip-workspace/tasks/main.yml

diff --git a/resources/ansible_roles/qtip-workspace/files/defaults/group_vars/.gitkeep b/resources/ansible_roles/qtip-workspace/files/defaults/group_vars/.gitkeep
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/resources/ansible_roles/qtip-workspace/files/defaults/host_vars/.gitkeep b/resources/ansible_roles/qtip-workspace/files/defaults/host_vars/.gitkeep
new file mode 100644 (file)
index 0000000..e69de29
@@ -1,4 +1,3 @@
-{% raw %}
 ##############################################################################
 # Copyright (c) 2017 ZTE Corporation and others.
 #
@@ -44,4 +43,3 @@
     - { role: qtip, tasks: aggregate, tags: [aggregate] }
   # publish results
     - { role: opnfv-testapi, tasks: report, when: testapi_url is defined, tags: [report] }
-{% endraw %}
@@ -1,4 +1,3 @@
-{% raw %}
 ##############################################################################
 # Copyright (c) 2017 ZTE Corporation and others.
 #
@@ -16,4 +15,3 @@
   gather_facts: no
   roles:
     - { role: qtip, tasks: generate-inventory }
-{% endraw %}
@@ -1,4 +1,3 @@
-{% raw %}
 ##############################################################################
 # Copyright (c) 2017 ZTE Corporation and others.
 #
@@ -18,4 +17,3 @@
   roles:
   # teardown environment
   - { role: qtip, tasks: teardown }
-{% endraw %}
@@ -1,4 +1,3 @@
-{% raw %}
 localhost   ansible_connection=local
 
 [{{ installer_master_group[installer] }}]
@@ -19,4 +18,3 @@ ansible_ssh_common_args=-F ./ssh.cfg
 {% endfor %}
 
 {% endfor %}
-{% endraw %}
@@ -1,4 +1,3 @@
-{% raw %}
 # Connect to target node through jump host
 #
 # OpenSSH 7.3:
@@ -13,4 +12,3 @@ Host {{ name }}
   ProxyCommand ssh -o 'ForwardAgent yes' {{ installer_master_host }} 'ssh-add && nc %h %p'
 
 {% endfor %}
-{% endraw %}
index 29da701..89ce3dd 100644 (file)
@@ -7,7 +7,12 @@
 # http://www.apache.org/licenses/LICENSE-2.0
 ##############################################################################
 
-- name: generating workspace
+- name: copying default files
+  synchronize:
+    src:  defaults/
+    dest: "{{ workspace }}/"
+
+- name: customizing for workspace
   template:
     src: "{{ item.src }}"
     dest: "{{ workspace }}/{{ item.path }}"