diff options
author | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2017-04-22 12:49:21 +0800 |
---|---|---|
committer | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2017-04-24 08:51:46 +0800 |
commit | 40c29df6796e6d055f35b730e70dac87ab7db2d4 (patch) | |
tree | d8cb93e351f41f3fb371751ed2a632672459a35b /resources/ansible_roles/opnfv-testapi | |
parent | 385aa6e98428982802ea14a4f6a5a32d3f78c643 (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.yml | 5 | ||||
-rw-r--r-- | resources/ansible_roles/opnfv-testapi/tasks/report.yml | 2 | ||||
-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" |