Commit 65e9b1c
Changed files (4)
ansible.cfg
@@ -0,0 +1,3 @@
+[defaults]
+inventory = hosts
+retry_files_enabled = False
hosts
@@ -0,0 +1,5 @@
+[local]
+localhost ansible_connection=local
+
+[local:vars]
+ansible_python_interpreter=/usr/bin/python3
main.yml
@@ -0,0 +1,80 @@
+---
+- hosts: local
+
+ vars:
+ st_dir: "{{ ansible_env.HOME }}/git/st"
+ dwm_dir: "{{ ansible_env.HOME }}/git/dwm"
+ slock_dir: "{{ ansible_env.HOME }}/git/slock"
+ home_dir: "{{ ansible_env.HOME }}/git/home"
+ lastpass_dir: "{{ ansible_env.HOME }}/git/lastpass-cli"
+ fonts_dir: "{{ ansible_env.HOME}}/.fonts"
+ git_email: "bryon.fryer@gmail.com"
+ git_username: "bryfry"
+ golang_tar: https://storage.googleapis.com/golang/go1.7.linux-amd64.tar.gz
+ scp_url: https://github.com/adobe-fonts/source-code-pro/archive/2.030R-ro/1.050R-it.zip
+ scp_dir: source-code-pro-2.030R-ro-1.050R-it
+
+
+ tasks:
+ - name: apt - update && upgrade && autoremove
+ apt:
+ update_cache: yes
+ cache_valid_time: 3600
+ upgrade: full
+ autoremove: yes
+ become: True
+ tags: apt
+
+ - name: apt - utilities
+ apt:
+ name: "{{ item }}"
+ state: latest
+ become: True
+ tags: apt
+ with_items:
+ # misc tools
+ - man
+ - htop
+ - vim
+ - git
+ - apt-file # search apt for header files
+ # GPG
+ - gnupg2
+ - gnupg-agent
+ - pinentry-tty
+ - scdaemon
+ - pcscd
+ # Ansible
+ - python3
+ - python3-pip
+ # wireless
+ - firmware-iwlwifi # reboot is easist way to enable
+ - iw
+ - wpasupplicant
+ # laptop tools
+ - powertop
+
+ # removed
+ #- x11-apps
+ #- ffmpeg
+ #- mplayer
+ #- netpbm
+ #- bluez
+ #- bluez-tools
+ #- chromium-browser
+
+ #- include: tasks/ntp.yml
+ #- include: tasks/audio.yml
+ #- include: tasks/st.yml
+ #- include: tasks/dwm.yml
+ #- include: tasks/slock.yml
+ #- include: tasks/home.yml
+ #- include: tasks/xorg.yml
+ #- include: tasks/systemd.yml
+ #- include: tasks/lastpass.yml
+ #- include: tasks/sourcecodepro.yml
+ #- include: tasks/battery.yml
+ #- include: tasks/golang.yml
+ #- include: tasks/git.yml
+
+
README.md
@@ -11,13 +11,13 @@ An ansible playbook for setting up Debian Sid (console only) on a Dell Chromeboo
#### Bootstrap device
- * basic cli: `sudo apt install git htop vim tmux`
+ * basic cli: `sudo apt install git htop vim`
* gpg yubikey: `sudo apt install gnupg2 gnupg-agent pinentry-curses scdaemon pcscd`
* gpg-agent config (`~/.gnupg/gpg-agent.conf`):
```
enable-ssh-support
- pinentry-program /usr/bin/pinentry-curses
+ pinentry-program /usr/bin/pinentry-tty
default-cache-ttl 60
max-cache-ttl 120
```
@@ -29,8 +29,9 @@ An ansible playbook for setting up Debian Sid (console only) on a Dell Chromeboo
gpgconf --launch gpg-agent
gpg-connect-agent updatestartuptty /bye > /dev/null
```
+
* `git clone git@github.com:bryfry/ansible-chromebook.git`
- * `sudo apt install python3 python3-pip`
+ * `sudo apt install python3 python3-pip apitude`
* `pip3 install git+https://github.com/ansible/ansible.git@devel`
#### wifi
@@ -40,6 +41,11 @@ An ansible playbook for setting up Debian Sid (console only) on a Dell Chromeboo
* `sudo wpa_supplicant -B -i wlp1s0 -c /root/<SSID>.conf`
* `sudo dhclient -i wlp1s0`
+#### Neat
+
+ * min backlight: `sudo tee /sys/class/backlight/intel_backlight/brightness <<< "1"`
+ * max backlight: `sudo tee /sys/class/backlight/intel_backlight/brightness <<< \`cat /sys/class/backlight/intel_backlight/max_brightness\``
+
## TODO
- [ ] `git config --global user.email "bryon@fryer.io"`