chore: cleanup

This commit is contained in:
2023-10-28 12:45:15 +09:30
parent 93b63308ef
commit 6763fe6509
6 changed files with 23 additions and 68 deletions

View File

@ -3,7 +3,6 @@
service:
name: containerd
state: restarted
# when: opensshd_installed is defined
when: >
containerd_config.changed | default(false) | bool
and
@ -15,13 +14,6 @@
- install
- name: "Apply Firewall Rules"
ansible.builtin.shell: |
/sbin/iptables-restore < /etc/iptables-kubernetes.rules
changed_when: false
listen: kubernetes_firewall_rules
# when: "ansible_os_family == 'Debian' and iptables_installed.rc == 0"
- name: Restart Kubernetes
ansible.builtin.service:
name: "{% if kubernetes_type == 'k3s' %}k3s{% else %}kubelet{% endif %}"