Infra/ansible/roles/kubernetes/handlers/main.yml

34 lines
873 B
YAML
Raw Normal View History

2022-10-18 22:18:54 +02:00
- name: kube | systemctl restart systemd-modules-load.service
2022-10-19 00:16:16 +02:00
become: "{{ do_become }}"
2022-10-18 22:18:54 +02:00
ansible.builtin.service:
name: "systemd-modules-load.service"
state: "restarted"
changed_when: false
failed_when: false
- name: kube | docker options changed
2022-10-19 00:16:16 +02:00
become: "{{ do_become }}"
2022-10-18 22:18:54 +02:00
ansible.builtin.service:
name: "docker.service"
state: "restarted"
changed_when: false
failed_when: false
- name: kube | sysctl --system
2022-10-19 00:16:16 +02:00
become: "{{ do_become }}"
2022-10-18 22:18:54 +02:00
ansible.builtin.command: sysctl --system
changed_when: false
failed_when: false
- name: kube | boot options changed
2022-10-19 00:16:16 +02:00
become: "{{ do_become }}"
2022-10-18 22:18:54 +02:00
changed_when: false
failed_when: false
ansible.builtin.reboot:
msg: "Reboot initiated by Ansible boot options changes"
connect_timeout: 5
reboot_timeout: 300
pre_reboot_delay: 0
post_reboot_delay: 30
test_command: uptime