2016-02-10 10:51:39 +00:00
|
|
|
---
|
|
|
|
- hosts: kube-master
|
|
|
|
|
|
|
|
tasks:
|
|
|
|
- name: Check the API servers are responding
|
2016-07-03 14:18:04 +00:00
|
|
|
uri:
|
2017-02-24 14:58:54 +00:00
|
|
|
url: "https://{{ access_ip | default(ansible_default_ipv4.address) }}:{{ kube_apiserver_port }}/api/v1"
|
2016-02-10 10:51:39 +00:00
|
|
|
user: kube
|
2017-09-09 20:41:31 +00:00
|
|
|
password: "{{ lookup('password', '../../credentials/kube_user length=15 chars=ascii_letters,digits') }}"
|
2016-02-10 10:51:39 +00:00
|
|
|
validate_certs: no
|
|
|
|
status_code: 200
|
2017-09-15 21:28:15 +00:00
|
|
|
when: not kubeadm_enabled|default(false)
|