diff options
author | Justin chi <chigang@huawei.com> | 2017-07-13 02:32:00 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-07-13 02:32:00 +0000 |
commit | c7f9c4e45dac28aba6728cade96fb366e42b1f8e (patch) | |
tree | 71a6d3171ad796cfe738eb33d99182d1c697be38 /deploy/adapters/ansible/roles/setup-infrastructure | |
parent | 9829c4894bd2d2a488b3ac71ec049b53377cfe6b (diff) | |
parent | bf14a70c09be362b13b16054174c16e43da9e2d2 (diff) |
Merge "Fix bug the controller node when baremetal deploy"
Diffstat (limited to 'deploy/adapters/ansible/roles/setup-infrastructure')
-rw-r--r-- | deploy/adapters/ansible/roles/setup-infrastructure/tasks/main.yml | 5 | ||||
-rw-r--r-- | deploy/adapters/ansible/roles/setup-infrastructure/vars/main.yml | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/deploy/adapters/ansible/roles/setup-infrastructure/tasks/main.yml b/deploy/adapters/ansible/roles/setup-infrastructure/tasks/main.yml index 5b70aeef..478c4d48 100644 --- a/deploy/adapters/ansible/roles/setup-infrastructure/tasks/main.yml +++ b/deploy/adapters/ansible/roles/setup-infrastructure/tasks/main.yml @@ -19,8 +19,9 @@ register: setup_infrastructure_result - fail: - msg: "there are some task failed when setup host." - when: setup_infrastructure_result.stdout.find('failed=1') != -1 + msg: "there are some task failed when setup infrastructure." + when: setup_infrastructure_result.stdout.find('failed={{item}}') != -1 + with_sequence: start=1 end={{ max_failed_times }} stride=1 - fail: msg: "some host are unreachable." diff --git a/deploy/adapters/ansible/roles/setup-infrastructure/vars/main.yml b/deploy/adapters/ansible/roles/setup-infrastructure/vars/main.yml new file mode 100644 index 00000000..22a990ef --- /dev/null +++ b/deploy/adapters/ansible/roles/setup-infrastructure/vars/main.yml @@ -0,0 +1,2 @@ +--- +max_failed_times: 9 |