mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Merge pull request #1923 from holta/pi-swap-size
Introduce variable pi_swap_file_size: 1024
This commit is contained in:
commit
98c60d3078
5 changed files with 19 additions and 3 deletions
|
@ -32,12 +32,12 @@
|
|||
name: ntp
|
||||
state: latest
|
||||
|
||||
- name: Increase swap file size (to CONF_SWAPSIZE=500 in /etc/dphys-swapfile) as kalite pip download fails (debuntu)
|
||||
- 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=500
|
||||
when: is_debuntu | bool
|
||||
line: "CONF_SWAPSIZE={{ pi_swap_file_size }}"
|
||||
when: is_debuntu | bool # Redundant, given raspberry_pi.yml is only run when rpi_model: "rpi" (similar to is_rpi: True). Until someone tries a non-debuntu OS on RPi?
|
||||
|
||||
- name: Restart swap service "dphys-swapfile" (debuntu)
|
||||
#command: /etc/init.d/dphys-swapfile restart
|
||||
|
|
|
@ -198,6 +198,10 @@ openvpn_server_port: 1194
|
|||
# need_ncat is turned true by os-#.yml files that don't have ncat in nmap
|
||||
need_ncat: False
|
||||
|
||||
# Some prefer 512MB for Zero W, others prefer 2048MB or higher for RPi 3 and 4.
|
||||
# Please see recommendations at: https://itsfoss.com/swap-size/
|
||||
pi_swap_file_size: 1024
|
||||
|
||||
|
||||
# 2-COMMON
|
||||
|
||||
|
|
|
@ -102,6 +102,10 @@ openvpn_handle:
|
|||
# The following seems necessary on CentOS:
|
||||
# openvpn_cron_enabled: True
|
||||
|
||||
# Some prefer 512MB for Zero W, others prefer 2048MB or higher for RPi 3 and 4.
|
||||
# Please see recommendations at: https://itsfoss.com/swap-size/
|
||||
pi_swap_file_size: 1024
|
||||
|
||||
|
||||
# 2-COMMON
|
||||
|
||||
|
|
|
@ -102,6 +102,10 @@ openvpn_handle:
|
|||
# The following seems necessary on CentOS:
|
||||
# openvpn_cron_enabled: True
|
||||
|
||||
# Some prefer 512MB for Zero W, others prefer 2048MB or higher for RPi 3 and 4.
|
||||
# Please see recommendations at: https://itsfoss.com/swap-size/
|
||||
pi_swap_file_size: 1024
|
||||
|
||||
|
||||
# 2-COMMON
|
||||
|
||||
|
|
|
@ -102,6 +102,10 @@ openvpn_handle:
|
|||
# The following seems necessary on CentOS:
|
||||
# openvpn_cron_enabled: True
|
||||
|
||||
# Some prefer 512MB for Zero W, others prefer 2048MB or higher for RPi 3 and 4.
|
||||
# Please see recommendations at: https://itsfoss.com/swap-size/
|
||||
pi_swap_file_size: 1024
|
||||
|
||||
|
||||
# 2-COMMON
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue