roles/rpi-base/tasks/main.yml
changeset 5 8e3d93a69233
parent 4 9ae95d5fa0b7
child 9 511e97bd5566
--- 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"