diff --git a/roles/master/tasks/main.yml b/roles/master/tasks/main.yml index 300af37..99124bc 100644 --- a/roles/master/tasks/main.yml +++ b/roles/master/tasks/main.yml @@ -5,7 +5,7 @@ register: kubeadm_reset - name: "Initialize Master {{ kubernetes_version }}" - shell: kubeadm init --apiserver-advertise-address={{ ansible_default_ipv4.address }} --token={{ token }} --kubernetes-version={{ kubernetes_version }} --pod-network-cidr=172.30.0.0/16 + shell: kubeadm init --apiserver-advertise-address={{ ansible_default_ipv4.address }} --token={{ token }} --kubernetes-version={{ kubernetes_version }} --pod-network-cidr={{ podnet }} register: kubeadm_init when: kubeadm_reset is succeeded