diff options
author | Christian Pointner <equinox@spreadspace.org> | 2023-05-06 23:01:55 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2023-05-06 23:01:55 +0200 |
commit | 48303a434f1dbb482e8c0de4c10ac73f165f96be (patch) | |
tree | 83f180ec2366eceac7266fe10ce3598beb421ca0 /roles/kubernetes/kubeadm | |
parent | k8s-chtest: upgrade kube-router to 1.5.1 and remove currently not working 1.5.4 (diff) |
kubernetes/kubeadm: add hatop shell alias
Diffstat (limited to 'roles/kubernetes/kubeadm')
-rw-r--r-- | roles/kubernetes/kubeadm/base/tasks/main.yml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/roles/kubernetes/kubeadm/base/tasks/main.yml b/roles/kubernetes/kubeadm/base/tasks/main.yml index 39e24ccb..75c1187a 100644 --- a/roles/kubernetes/kubeadm/base/tasks/main.yml +++ b/roles/kubernetes/kubeadm/base/tasks/main.yml @@ -43,6 +43,17 @@ state: "{% if haproxy_config is changed %}restarted{% else %}started{% endif %}" enabled: yes +- name: add hatop config for shells + loop: + - zsh + - bash + blockinfile: + path: "/root/.{{ item }}rc" + create: yes + marker: "### {mark} ANSIBLE MANAGED BLOCK for hatop ###" + content: | + alias hatop='hatop -s /run/haproxy/admin.sock' + ## loading the modules temporarly because kubeadm will complain if they are not there # but i don't think it is necessary to make this persistent, also ignoring changes here - name: load module br_netfilter to satisfy kubeadm init/join |