Renamed base role to rpi-base.
authorLuke Hoersten <luke@hoersten.org>
Mon, 29 Jan 2018 20:31:46 -0600
changeset 4 9ae95d5fa0b7
parent 3 67f6a1e7c40a
child 5 8e3d93a69233
Renamed base role to rpi-base.
hap.yaml
roles/base/defaults/main.yaml
roles/base/tasks/main.yml
roles/base/templates/wpa_supplicant.conf.j2
roles/rpi-base/defaults/main.yaml
roles/rpi-base/tasks/main.yml
roles/rpi-base/templates/wpa_supplicant.conf.j2
rpi-door.yaml
--- a/hap.yaml	Fri Jan 19 12:26:10 2018 -0600
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,7 +0,0 @@
----
-
-- hosts: raspberrypi
-  roles:
-    - base
-    # - automationhat
-    - hap-nodejs
--- a/roles/base/defaults/main.yaml	Fri Jan 19 12:26:10 2018 -0600
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,6 +0,0 @@
----
-
-ubuntu_base_apt_packages:
-  - emacs-nox
-  - python3
-  - htop
--- a/roles/base/tasks/main.yml	Fri Jan 19 12:26:10 2018 -0600
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,21 +0,0 @@
----
-
-- 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"
--- a/roles/base/templates/wpa_supplicant.conf.j2	Fri Jan 19 12:26:10 2018 -0600
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,12 +0,0 @@
-# {{ansible_managed}}
-
-country=US
-ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
-update_config=1
-{% for network in wpa_networks %}
-
-network={
-    ssid="{{network.ssid}}"
-    psk="{{network.psk}}"
-}
-{% endfor %}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/roles/rpi-base/defaults/main.yaml	Mon Jan 29 20:31:46 2018 -0600
@@ -0,0 +1,7 @@
+---
+
+ubuntu_base_apt_packages:
+  - emacs-nox
+  - python3
+  - htop
+  - jq
--- /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"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/roles/rpi-base/templates/wpa_supplicant.conf.j2	Mon Jan 29 20:31:46 2018 -0600
@@ -0,0 +1,12 @@
+# {{ansible_managed}}
+
+country=US
+ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
+update_config=1
+{% for network in wpa_networks %}
+
+network={
+    ssid="{{network.ssid}}"
+    psk="{{network.psk}}"
+}
+{% endfor %}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rpi-door.yaml	Mon Jan 29 20:31:46 2018 -0600
@@ -0,0 +1,7 @@
+---
+
+- hosts: raspberrypi
+  roles:
+    - rpi-base
+    # - automationhat
+    - hap-nodejs