fix(handler): remove old k8s code causing handler to fail

!42
This commit is contained in:
2024-03-14 01:00:20 +09:30
parent 5444f583e5
commit a23bc5e9ee

View File

@ -1,31 +1,13 @@
---
- name: "restart ContainerD"
service:
name: containerd
state: restarted
when: >
containerd_config.changed | default(false) | bool
and
containerd_installed.rc | default(1) | int == 0
and
kubernetes_type == 'k8s'
tags:
- configure
- install
- name: Restart Kubernetes
ansible.builtin.service:
name: |-
{%- if kubernetes_type == 'k3s' -%}
{%- if nfc_role_kubernetes_master | default(false) | bool -%}
k3s
{%- else -%}
k3s-agent
{%- endif -%}
{%- if nfc_role_kubernetes_master | default(false) | bool -%}
k3s
{%- else -%}
kubelet
{%- endif %}
k3s-agent
{%- endif -%}
state: restarted
listen: kubernetes_restart
when: |-