1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

ensure dphys-swapfile fake-hwclock are installed

This commit is contained in:
Jerry Vonau 2020-03-15 01:27:45 -05:00
parent eca80a289a
commit e48d56dfb9

View file

@ -24,12 +24,18 @@
state: present
when: rtc_id is defined and rtc_id != "none" and is_ubuntu
- name: Install dphys-swapfile fake-hwclock
package:
name:
- dphys-swapfile
- fake-hwclock
state: present
- name: Increase swap file size (to CONF_SWAPSIZE={{ pi_swap_file_size }} in /etc/dphys-swapfile) as kalite pip download fails (debuntu)
lineinfile:
path: /etc/dphys-swapfile
regexp: "^CONF_SWAPSIZE"
line: "CONF_SWAPSIZE={{ pi_swap_file_size }}"
when: is_raspbian | bool
- name: Restart swap service "dphys-swapfile" (debuntu)
#command: /etc/init.d/dphys-swapfile restart