diff options
author | HU Xinhui <xinhui_hu@foxmail.com> | 2018-09-18 01:34:15 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-09-18 01:34:15 +0000 |
commit | f06657863363d316b0e9f95830c2a753012b4e89 (patch) | |
tree | 725152722fe0a1d4d539fc1c81dffd9b4d570828 /deploy/adapters/ansible/kubernetes/roles/kargo | |
parent | 9b90a43a543b12050ed8673e2dc9f8b0f13eaeb4 (diff) | |
parent | 189726667231bcc652f0074c5998d064718162d5 (diff) |
Merge "Add kubespray to perform the result check"
Diffstat (limited to 'deploy/adapters/ansible/kubernetes/roles/kargo')
-rw-r--r-- | deploy/adapters/ansible/kubernetes/roles/kargo/tasks/main.yml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/kubernetes/roles/kargo/tasks/main.yml b/deploy/adapters/ansible/kubernetes/roles/kargo/tasks/main.yml index 0e253129..338f2574 100644 --- a/deploy/adapters/ansible/kubernetes/roles/kargo/tasks/main.yml +++ b/deploy/adapters/ansible/kubernetes/roles/kargo/tasks/main.yml @@ -282,3 +282,16 @@ kube-controller-manager.manifest.j2", -e "@extra-vars.yml" -b -v 2>&1 | tee kargo.log tags: - ansible + +- name: read the ansible log file + shell: "cat /opt/kargo_k8s/kargo.log | tail -n 1000" + register: setup_kargo_result + +- fail: + msg: "some task failed when setup kargo." + when: setup_kargo_result.stdout.find('failed=1') != -1 + +- fail: + msg: "some host are unreachable." + when: setup_kargo_result.stdout.find('unreachable=1') != -1 + run_once: true |