PR #24 follow-up: Use verbosity instead of debug variable for debug info.

This commit is contained in:
Jeff Geerling 2018-10-04 22:43:48 -05:00
parent ad61d4bdf7
commit a2350787ed
3 changed files with 4 additions and 9 deletions

View File

@ -50,10 +50,6 @@ Whether to remove the taint that denies pods from being deployed to the Kubernet
Whether to enable the Kubernetes web dashboard UI (only accessible on the master itself, or proxied).
kubernetes_debug: false
Whether to show extra debug info in Ansible's logs (e.g. the output of the `kubeadm init` command).
kubernetes_pod_network_cidr: '10.244.0.0/16'
kubernetes_apiserver_advertise_address: ''
kubernetes_version_kubeadm: 'stable-{{ kubernetes_version }}'

View File

@ -19,7 +19,6 @@ kubernetes_kubeadm_init_extra_opts: ""
kubernetes_allow_pods_on_master: true
kubernetes_enable_web_ui: true
kubernetes_debug: false
kubernetes_pod_network_cidr: '10.244.0.0/16'
kubernetes_apiserver_advertise_address: ''

View File

@ -13,10 +13,10 @@
when: kubernetes_init_stat.stat.exists == false
- name: Print the init output to screen.
debug: var=kubeadmin_init.stdout
when:
- kubernetes_debug
- kubernetes_init_stat.stat.exists == false
debug:
var: kubeadmin_init.stdout
verbosity: 2
when: kubernetes_init_stat.stat.exists == false
- name: Ensure .kube directory exists.
file: