summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible
diff options
context:
space:
mode:
authormeimei <meimei@huawei.com>2017-01-18 09:34:22 +0800
committermeimei <meimei@huawei.com>2017-01-18 17:23:58 +0800
commite479c2ffb9d0375092bb1c4ee9930867140b871e (patch)
tree0229b731bdbfef376c00ffaaa44bc1a1942630b7 /deploy/adapters/ansible
parent66e8997c590523fdda22f6251a96bc08e001ae76 (diff)
[compass] bugfix: it is noneffective to retry the network checking
Change-Id: I97413575e1cac87da4ac99bc45e1c55777f38243 Signed-off-by: meimei <meimei@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible')
-rw-r--r--deploy/adapters/ansible/roles/setup-network/tasks/main.yml6
1 files changed, 4 insertions, 2 deletions
diff --git a/deploy/adapters/ansible/roles/setup-network/tasks/main.yml b/deploy/adapters/ansible/roles/setup-network/tasks/main.yml
index 9edee350..24d69f6e 100644
--- a/deploy/adapters/ansible/roles/setup-network/tasks/main.yml
+++ b/deploy/adapters/ansible/roles/setup-network/tasks/main.yml
@@ -67,10 +67,12 @@
python /opt/setup_networks/check_network.py \
"{{ inventory_hostname }}" \
"{{ ip_settings | to_json }}"
- tags:
- - network_check
+ register: result
+ until: result.stderr.find('unreachable')==-1
retries: 3
delay: 2
+ tags:
+ - network_check
- name: add to boot scripts
shell: update-rc.d net_init defaults