diff --git a/roles/1-prep/tasks/raspberry_pi.yml b/roles/1-prep/tasks/raspberry_pi.yml index 22efe6934..c8b0e41f7 100644 --- a/roles/1-prep/tasks/raspberry_pi.yml +++ b/roles/1-prep/tasks/raspberry_pi.yml @@ -32,11 +32,11 @@ 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_size }} in /etc/dphys-swapfile) as kalite pip download fails (debuntu) lineinfile: path: /etc/dphys-swapfile regexp: "^CONF_SWAPSIZE" - line: CONF_SWAPSIZE=500 + line: "CONF_SWAPSIZE={{ pi_swap_size }}" when: is_debuntu | bool - name: Restart swap service "dphys-swapfile" (debuntu)