From a2350787ed1306927b23730c249fefd8c8a85b99 Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Thu, 4 Oct 2018 22:43:48 -0500 Subject: [PATCH] PR #24 follow-up: Use verbosity instead of debug variable for debug info. --- README.md | 4 ---- defaults/main.yml | 1 - tasks/master-setup.yml | 8 ++++---- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index a710d64..eca7109 100644 --- a/README.md +++ b/README.md @@ -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 }}' diff --git a/defaults/main.yml b/defaults/main.yml index 06c24c4..dc937ce 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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: '' diff --git a/tasks/master-setup.yml b/tasks/master-setup.yml index a164c55..ee31867 100644 --- a/tasks/master-setup.yml +++ b/tasks/master-setup.yml @@ -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: