From 812d71ca107106d0f82ef063e6b57ab6419f70a2 Mon Sep 17 00:00:00 2001 From: gjmzj Date: Sat, 16 Mar 2019 17:32:43 +0800 Subject: [PATCH] minor fix --- 99.clean.yml | 1 + roles/kube-node/tasks/main.yml | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/99.clean.yml b/99.clean.yml index ae10ffc..282b9b5 100644 --- a/99.clean.yml +++ b/99.clean.yml @@ -212,3 +212,4 @@ - 'kubeasz' - 'helm' - 'kubectl completion' + - 'HELM_TLS_ENABLE' diff --git a/roles/kube-node/tasks/main.yml b/roles/kube-node/tasks/main.yml index f0ee7f9..515b3e9 100644 --- a/roles/kube-node/tasks/main.yml +++ b/roles/kube-node/tasks/main.yml @@ -29,6 +29,15 @@ regexp: 'kubectl completion' line: 'source <(kubectl completion bash)' +- name: ansible 控制端添加 kubectl 自动补全 + lineinfile: + dest: ~/.bashrc + state: present + regexp: 'kubectl completion' + line: 'source <(kubectl completion bash)' + connection: local + run_once: true + - name: 分发证书相关 synchronize: src={{ ca_dir }}/{{ item }} dest={{ ca_dir }}/{{ item }} with_items: