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

Merge pull request #278 from iiab/master

sync from iiab/iiab
This commit is contained in:
A Holt 2019-08-13 17:58:06 -04:00 committed by GitHub
commit 36e3e0fa59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 21 additions and 3 deletions

View file

@ -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

View file

@ -20,6 +20,7 @@
- name: Run yarn install to get needed modules (CAN TAKE ~15 MINUTES)
command: yarn add @internetarchive/dweb-archive @internetarchive/dweb-mirror
become: yes # Escalate to root, similar to 'sudo'
args:
chdir: "{{ internetarchive_dir }}"
creates: "{{ internetarchive_dir }}/node_modules/@internetarchive/dweb-mirror/internetarchive"
@ -74,6 +75,7 @@
- name: 'Update pre-existing install: yarn upgrade'
command: yarn upgrade
become: yes # Escalate to root, similar to 'sudo'
args:
chdir: "{{ internetarchive_dir }}"
when: not internetarchive_installing.changed and internetarchive_upgrade

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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