summaryrefslogtreecommitdiff
path: root/roles/kubernetes/kubeadm/base/tasks/main.yml
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2020-01-11 01:35:42 +0100
committerChristian Pointner <equinox@spreadspace.org>2020-01-31 22:31:22 +0100
commit949ff8a513464f107ebd2c474078b452e129acf3 (patch)
tree4d4a81bb396b36d95804caebf90efd5f5aff25f9 /roles/kubernetes/kubeadm/base/tasks/main.yml
parents2-k8s-test(0|1): fixed mac address (diff)
kubernetes: major refactoring of kubernetes playbook structure
Diffstat (limited to 'roles/kubernetes/kubeadm/base/tasks/main.yml')
-rw-r--r--roles/kubernetes/kubeadm/base/tasks/main.yml3
1 files changed, 2 insertions, 1 deletions
diff --git a/roles/kubernetes/kubeadm/base/tasks/main.yml b/roles/kubernetes/kubeadm/base/tasks/main.yml
index 2d9b9eed..76953498 100644
--- a/roles/kubernetes/kubeadm/base/tasks/main.yml
+++ b/roles/kubernetes/kubeadm/base/tasks/main.yml
@@ -16,10 +16,11 @@
selection: hold
- name: set kubelet node-ip
+ when: kubernetes_kubelet_node_ip is defined
lineinfile:
name: "/etc/default/kubelet"
regexp: '^KUBELET_EXTRA_ARGS='
- line: 'KUBELET_EXTRA_ARGS=--node-ip={{ kubernetes.pod_ip_range | ipsubnet(kubernetes.pod_ip_range_size, kubernetes.net_index[inventory_hostname]) | ipaddr(1) | ipaddr("address") }}'
+ line: 'KUBELET_EXTRA_ARGS=--node-ip={{ kubernetes_kubelet_node_ip }}'
- name: add kubectl/kubeadm completion for shells
loop: