Skip to content

Commit

Permalink
fixes #29 :apiserver-vip - IP is up
Browse files Browse the repository at this point in the history
  • Loading branch information
gprossliner committed Jan 29, 2020
1 parent 5cad9a8 commit 64b2e17
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion k8ssetup/lib/ansible/roles/lnxclp-vip/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,16 @@
state: yes
persistent: yes

- name: apiserver-vip - IP is up (ping {{k8s_apiserver_vip}} -c 10)
- name: apiserver-vip - IP is up (ping {{k8s_apiserver_vip}} -c 3)
shell: "ping {{k8s_apiserver_vip}} -c 3"
changed_when: false
failed_when: false
register: res

- name: apiserver-vip - IP is up (ping {{k8s_apiserver_vip}} -c 10 with retries)
shell: "ping {{k8s_apiserver_vip}} -c 10"
changed_when: false
when: res.failed
retries: 5
delay: 1

Expand Down

0 comments on commit 64b2e17

Please sign in to comment.