roles/rpi-base/tasks/main.yml
changeset 4 9ae95d5fa0b7
parent 0 30d8bcb1ebb4
child 5 8e3d93a69233
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/roles/rpi-base/tasks/main.yml	Mon Jan 29 20:31:46 2018 -0600
@@ -0,0 +1,21 @@
+---
+
+- name: setup wifi
+  become: yes
+  template:
+    src: "wpa_supplicant.conf.j2"
+    dest: "/etc/wpa_supplicant/wpa_supplicant.conf"
+    mode: 0644
+
+- name: update apt package cache
+  become: yes
+  apt: upgrade="dist" update_cache="yes" cache_valid_time="3600"
+
+- name: install extra apt packages
+  become: yes
+  apt: name="{{item}}"
+  with_items: "{{ubuntu_base_apt_packages}}"
+
+- name: authorize admin ssh keys
+  become: yes
+  authorized_key: "user=pi key=https://github.com/{{github_user}}.keys"