# HG changeset patch # User Luke Hoersten # Date 1573929962 21600 # Node ID a006c668055c515e94febb03e2420b3dc486a17b # Parent 00185499ed12cf192a313bfc1b360555c778a954 Removed base rpi role. diff -r 00185499ed12 -r a006c668055c roles/rpi-base/defaults/main.yaml --- a/roles/rpi-base/defaults/main.yaml Mon Sep 23 18:25:33 2019 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ ---- - -rpi_base_apt_packages: - - "emacs-nox" - - "htop" - - "jq" - -rpi_enable_wifi: true diff -r 00185499ed12 -r a006c668055c roles/rpi-base/tasks/main.yml --- a/roles/rpi-base/tasks/main.yml Mon Sep 23 18:25:33 2019 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ ---- - -- name: turn swap off - become: yes - command: "swapoff -a" - changed_when: false - -- name: setup wifi - become: yes - template: - src: "wpa_supplicant.conf.j2" - dest: "/etc/wpa_supplicant/wpa_supplicant.conf" - mode: 0644 - when: rpi_enable_wifi - -- 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="{{rpi_base_apt_packages}}" - -- name: authorize admin ssh keys - become: yes - authorized_key: user="pi" key="https://github.com/{{github_user}}.keys" - -- name: remove swap apt package - become: yes - apt: state="absent" name="dphys-swapfile" diff -r 00185499ed12 -r a006c668055c roles/rpi-base/templates/wpa_supplicant.conf.j2 --- a/roles/rpi-base/templates/wpa_supplicant.conf.j2 Mon Sep 23 18:25:33 2019 -0500 +++ /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 %}