diff options
Diffstat (limited to 'roles/kubernetes')
-rw-r--r-- | roles/kubernetes/standalone/base/defaults/main.yml | 2 | ||||
-rw-r--r-- | roles/kubernetes/standalone/base/tasks/main.yml | 29 |
2 files changed, 13 insertions, 18 deletions
diff --git a/roles/kubernetes/standalone/base/defaults/main.yml b/roles/kubernetes/standalone/base/defaults/main.yml index 396f7c68..3f6b52bb 100644 --- a/roles/kubernetes/standalone/base/defaults/main.yml +++ b/roles/kubernetes/standalone/base/defaults/main.yml @@ -15,5 +15,3 @@ kubernetes_standalone_cni_variant: with-portmap kubernetes_standalone_local_services_tcp: [] kubernetes_standalone_local_services_udp: [] - -kubernetes_standalone_install_kubeletctl: yes diff --git a/roles/kubernetes/standalone/base/tasks/main.yml b/roles/kubernetes/standalone/base/tasks/main.yml index d95f9a20..549fe216 100644 --- a/roles/kubernetes/standalone/base/tasks/main.yml +++ b/roles/kubernetes/standalone/base/tasks/main.yml @@ -57,20 +57,17 @@ enabled: yes - name: install kubeletctl - when: kubernetes_standalone_install_kubeletctl - block: - - name: install kubeletctl package - apt: - name: kubeletctl - state: present + apt: + name: kubeletctl + state: present - - name: add kubeletctl config for shells - loop: - - zsh - - bash - blockinfile: - path: "/root/.{{ item }}rc" - create: yes - marker: "### {mark} ANSIBLE MANAGED BLOCK for kubeletctl ###" - content: | - alias kubeletctl="kubeletctl --server 127.0.0.1 --cacert /etc/ssl/standalone-kubelet/ca-crt.pem --cert /etc/ssl/standalone-kubelet/client/crt.pem --key /etc/ssl/standalone-kubelet/client/key.pem --ignoreconfig" +- name: add kubeletctl config for shells + loop: + - zsh + - bash + blockinfile: + path: "/root/.{{ item }}rc" + create: yes + marker: "### {mark} ANSIBLE MANAGED BLOCK for kubeletctl ###" + content: | + alias kubeletctl="kubeletctl --server 127.0.0.1 --cacert /etc/ssl/standalone-kubelet/ca-crt.pem --cert /etc/ssl/standalone-kubelet/client/crt.pem --key /etc/ssl/standalone-kubelet/client/key.pem --ignoreconfig" |