raspi: Disable swap file
Raspberry Pi's have enough RAM, let's not prematurely break the SD card.
This commit is contained in:
parent
39afabce7e
commit
5c5826acb6
1 changed files with 13 additions and 0 deletions
|
@ -24,3 +24,16 @@
|
||||||
regexp: "^#?display_rotate"
|
regexp: "^#?display_rotate"
|
||||||
when: raspi_rotate_display is defined
|
when: raspi_rotate_display is defined
|
||||||
notify: reboot
|
notify: reboot
|
||||||
|
|
||||||
|
- name: Disable swap
|
||||||
|
block:
|
||||||
|
- name: Stop swap service
|
||||||
|
systemd:
|
||||||
|
name: dphys-swapfile
|
||||||
|
state: stopped
|
||||||
|
enabled: no
|
||||||
|
|
||||||
|
- name: Remove swap file
|
||||||
|
command: dphys-swapfile uninstall
|
||||||
|
args:
|
||||||
|
removes: /var/swap
|
||||||
|
|
Loading…
Add table
Reference in a new issue