ansible_cache/home_linux/k3s_stuff/disable_swap.yml
2026-02-01 15:32:27 +00:00

24 lines
456 B
YAML

---
- name: Disable swap on Raspberries
hosts: kubernetes
roles:
- common
become: yes
gather_facts: no
tasks:
- name: Stop swap service
ansible.builtin.shell: dphys-swapfile swapoff
- name: Disable swap service
ansible.builtin.shell: systemctl disable dphys-swapfile
- name: Delete swap file
ansible.builtin.shell: dphys-swapfile uninstall
- name: Reboot
ansible.builtin.reboot:
test_command: uptime