summaryrefslogtreecommitdiffstats
path: root/resources/ansible_roles/opnfv-testapi
diff options
context:
space:
mode:
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"