Commit ea20630
Changed files (7)
files/search_caps.kmap
@@ -0,0 +1,2 @@
+keymaps 0-127
+keycode 125 = Control
tasks/home.yml
@@ -10,6 +10,7 @@
git:
repo: git@github.com:bryfry/home.git
dest: "{{ home_dir }}"
+ accept_hostkey: True
when: not home_git_dir.stat.exists
- name: home - symbolic links
tasks/logbook.yml
@@ -10,4 +10,5 @@
git:
repo: git@github.com:bryfry/logbook.git
dest: "{{ logbook_dir }}"
+ accept_hostkey: True
when: not lb_git_dir.stat.exists
tasks/systemd.yml
@@ -1,6 +1,10 @@
---
# systemd.yml tasks
+- name: home - create config dir
+ file:
+ path: "{{ ansible_env.HOME }}/.config"
+ state: directory
- name: systemd - config files
copy:
@@ -9,6 +13,7 @@
become: True
with_items:
- {src: "files/search_caps.service", dest: "/etc/systemd/system/search_caps.service"}
+ - {src: "files/search_caps.kmap", dest: "{{ ansible_env.HOME }}/.config/search_caps.kmap"}
- name: systemd - enable keyboard mapping fix on startup
systemd:
hosts
@@ -1,5 +1,8 @@
-[local]
-localhost ansible_connection=local
+[chromebooks]
+localhost ansible_connection=local git_email="bryon.fryer@gmail.com" git_username="bryfry"
-[local:vars]
+[disabled_for_now]
+perfecttime git_email="sean.r.barbor@gmail.com" git_username="seaneon"
+
+[chromebooks:vars]
ansible_python_interpreter=/usr/bin/python3
main.yml
@@ -1,11 +1,9 @@
---
-- hosts: local
+- hosts: chromebooks
vars:
home_dir: "{{ ansible_env.HOME }}/git/home"
logbook_dir: "{{ ansible_env.HOME }}/git/logbook"
- git_email: "bryon.fryer@gmail.com"
- git_username: "bryfry"
terminus_font_file: "ter-powerline-v12n.psf.gz"
tasks:
@@ -28,11 +26,13 @@
# misc tools
- man
- htop
+ - tmux
- vim
- git
- apt-file # search apt for header files
- curl
- mtr-tiny
+ - elinks
# GPG
- gnupg2
- gnupg-agent
@@ -43,11 +43,20 @@
- python3
- python3-pip
# Wireless
- - firmware-iwlwifi # reboot is easist way to enable
- iw
- wpasupplicant
# laptop tools
- powertop
+
+ - name: apt - utilities
+ apt:
+ name: "{{ item }}"
+ state: latest
+ become: True
+ tags: apt
+ with_items:
+ - firmware-iwlwifi # reboot is easist way to enable, only on debian
+ when: ansible_distribution == 'Debian'
- include: tasks/home.yml
- include: tasks/logbook.yml
README.md
@@ -37,7 +37,7 @@ An ansible playbook for setting up Debian Sid (console only) on a Dell Chromeboo
#### wifi
* `sudo iw dev wlp1s0 scan | grep SSID`
- * `sudo tee wpa_passphrase <SSID> > /root/<SSID>.conf` (prompt is for password)
+ * `wpa_passphrase <SSID> | sudo tee -a /root/<SSID>.conf` (prompt is for password)
* `sudo wpa_supplicant -B -i wlp1s0 -c /root/<SSID>.conf`
* `sudo dhclient -i wlp1s0`