summaryrefslogtreecommitdiffstats
path: root/deploy
diff options
context:
space:
mode:
Diffstat (limited to 'deploy')
-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