-update swap file size for pi's - use dphys-swapfile

This commit is contained in:
Pi
2019-03-29 09:13:54 -04:00
parent e83720a1c3
commit f9dbca34d9
4 changed files with 22 additions and 4 deletions

17
roles/pi/tasks/main.yaml Executable file
View File

@@ -0,0 +1,17 @@
---
- name: set swapfile
become: true
lineinfile:
path: /etc/dphys-swapfile
state: present
regexp: '^CONF_SWAPSIZE'
line: 'CONF_SWAPSIZE=1024'
owner: root
group: root
mode: 0600
tags: set_swapfile
- name: restart swapfile
become: true
command: '/etc/init.d/dphys-swapfile restart'
tags: set_swapfile