aboutsummaryrefslogtreecommitdiffstats
path: root/resources/ansible_roles/opnfv-testapi
diff options
context:
space:
mode:
authorYujun Zhang <zhang.yujunz@zte.com.cn>2017-04-22 12:49:21 +0800
committerYujun Zhang <zhang.yujunz@zte.com.cn>2017-04-24 08:51:46 +0800
commit40c29df6796e6d055f35b730e70dac87ab7db2d4 (patch)
treed8cb93e351f41f3fb371751ed2a632672459a35b /resources/ansible_roles/opnfv-testapi
parent385aa6e98428982802ea14a4f6a5a32d3f78c643 (diff)
Organize **all** tasks into ansible role `qtip`
Change-Id: I5d3852d2a31e9c4043191377e5cb7d539d222a8c Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
Diffstat (limited to 'resources/ansible_roles/opnfv-testapi')
-rw-r--r--resources/ansible_roles/opnfv-testapi/tasks/main.yml5
-rw-r--r--resources/ansible_roles/opnfv-testapi/tasks/report.yml2
-rw-r--r--resources/ansible_roles/opnfv-testapi/tasks/setup.yml (renamed from resources/ansible_roles/opnfv-testapi/tasks/init.yml)1
3 files changed, 4 insertions, 4 deletions
diff --git a/resources/ansible_roles/opnfv-testapi/tasks/main.yml b/resources/ansible_roles/opnfv-testapi/tasks/main.yml
index 1dd52208..270ffb59 100644
--- a/resources/ansible_roles/opnfv-testapi/tasks/main.yml
+++ b/resources/ansible_roles/opnfv-testapi/tasks/main.yml
@@ -8,8 +8,5 @@
##############################################################################
---
-- include: init.yml
- when: action == 'init'
-- include: report.yml
- when: action == 'report'
+- include: "{{ tasks }}.yml"
diff --git a/resources/ansible_roles/opnfv-testapi/tasks/report.yml b/resources/ansible_roles/opnfv-testapi/tasks/report.yml
index fd23e549..aa213a71 100644
--- a/resources/ansible_roles/opnfv-testapi/tasks/report.yml
+++ b/resources/ansible_roles/opnfv-testapi/tasks/report.yml
@@ -7,6 +7,8 @@
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
+---
+
- name: push result to testapi
uri:
url: "{{ testapi_url }}/results"
diff --git a/resources/ansible_roles/opnfv-testapi/tasks/init.yml b/resources/ansible_roles/opnfv-testapi/tasks/setup.yml
index 278a4e27..e6bb5224 100644
--- a/resources/ansible_roles/opnfv-testapi/tasks/init.yml
+++ b/resources/ansible_roles/opnfv-testapi/tasks/setup.yml
@@ -8,6 +8,7 @@
##############################################################################
---
+
- name: create project and pod
uri:
url: "{{ testapi_url }}/{{item}}s"