Disabled rpi swap because it kills the sd cards.
authorLuke Hoersten <luke@hoersten.org>
Mon, 29 Jan 2018 20:45:09 -0600
changeset 5 8e3d93a69233
parent 4 9ae95d5fa0b7
child 6 0dab8e98044a
Disabled rpi swap because it kills the sd cards.
roles/rpi-base/tasks/main.yml
--- a/roles/rpi-base/tasks/main.yml	Mon Jan 29 20:31:46 2018 -0600
+++ b/roles/rpi-base/tasks/main.yml	Mon Jan 29 20:45:09 2018 -0600
@@ -1,5 +1,14 @@
 ---
 
+- name: turn swap off
+  become: yes
+  command: "swapoff -a"
+  changed_when: false
+
+- name: remove swap apt package
+  become: yes
+  apt: state="absent" name="dphys-swapfile"
+
 - name: setup wifi
   become: yes
   template:
@@ -18,4 +27,4 @@
 
 - name: authorize admin ssh keys
   become: yes
-  authorized_key: "user=pi key=https://github.com/{{github_user}}.keys"
+  authorized_key: user="pi" key="https://github.com/{{github_user}}.keys"