home · contact · privacy
Ansible script: Improve comments, add alsamixer.
authorChristian Heller <c.heller@plomlompom.de>
Sat, 15 Apr 2017 11:00:11 +0000 (13:00 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Sat, 15 Apr 2017 11:00:11 +0000 (13:00 +0200)
ansible/config.yml
ansible/files/apt-mark/.various_useful.swp [new file with mode: 0644]
ansible/files/apt-mark/3d_acceleration
ansible/files/apt-mark/basic_x_tools
ansible/files/apt-mark/minimal_ansible_environment
ansible/files/apt-mark/power_management
ansible/files/apt-mark/sudo_git_vim_less_openssh [deleted file]
ansible/files/apt-mark/various_useful [new file with mode: 0644]

index c49e7c9551e75ead1f7bb8eefa3d04b5e69916e5..2a7f1a3017964859749245e6d1c143044d3a60c8 100644 (file)
   - name: ensure power management tools are installed
     apt: name={{item}} state=present
     with_lines: cat ~/config/ansible/files/apt-mark/power_management | sed -e 's/ *#.*$//'
-    #with_items:
-    #- tlp
-    #- acpi-call-dkms
   - name: start TLP
     shell: tlp start
 
   # Configure console.
+  #
+  # For some reason, some settings are only applied two reboots after this.
   - name: symlink console config files
     file: state=link force=yes src={{item}} dest={{item|basename|regex_replace('___','/')}}
     with_fileglob: ~/config/ansible/files/console/*
   - name: ensure locales and console-setup are installed
     apt: name={{item}} state=present
     with_lines: cat ~/config/ansible/files/apt-mark/console | sed -e 's/ *#.*$//'
-    #with_items:
-    #- locales
-    #- console-setup
   - name: generate en_US.UTF-8 locale
     locale_gen: name=en_US.UTF-8 state=present
   - name: run setupcon to apply console settings from /etc/default/
     - ~/config/dotfiles/root/*
   - name: ensure ~/.vimbackups directory
     file: state=directory dest=~/.vimbackups
-  - name: ensure man-db, manpages is installed
+  - name: ensure man-db, manpages are installed
     apt: name={{item}} state=present
     with_lines: cat ~/config/ansible/files/apt-mark/man | sed -e 's/ *#.*$//'
   - name: set /etc/localtime
     file: state=link force=yes src=/usr/share/zoneinfo/Europe/Berlin dest=/etc/localtime
-  - name: ensure sudo, git, vim, less, openssh are installed
+  - name: ensure various useful tools are installed: sudo, git, vim, less, openssh, alsamixer
     apt: name={{item}} state=present
-    with_lines: cat ~/config/ansible/files/apt-mark/sudo_git_vim_less_openssh | sed -e 's/ *#.*$//'
+    with_lines: cat ~/config/ansible/files/apt-mark/various_useful | sed -e 's/ *#.*$//'
   - name: ensure boot messages are not cleared on start up
     replace: dest=/etc/systemd/system/getty.target.wants/getty@tty1.service regexp='^TTYVTDisallocate=yes.*$' replace='TTYVTDisallocate=no'
 
diff --git a/ansible/files/apt-mark/.various_useful.swp b/ansible/files/apt-mark/.various_useful.swp
new file mode 100644 (file)
index 0000000..dfa73ad
Binary files /dev/null and b/ansible/files/apt-mark/.various_useful.swp differ
index 6d1064f9c36eb5922388cc5875f5d37a3bae32f0..7d0ba5b22a1c07727e5ee01d1a3bb72af12ab37b 100644 (file)
@@ -1,5 +1,5 @@
 bumblebee-nvidia
-libgl1-mesa-dri  # necessary for OpenGL 3D acceleration to work
-libglu1-mesa  # necessary for OpenGL 3D acceleration to work
-linux-headers-amd64  # necessary to build proper nvidia-driver module
-primus
+libgl1-mesa-dri  # tested as necessary for OpenGL 3D acceleration to work
+libglu1-mesa  # tested as necessary for OpenGL 3D acceleration to work
+linux-headers-amd64  # tested as necessary to build proper nvidia-driver module
+primus  # bridge by which bumblebee will deliver Nvidia-renderend content to Intel card
index 7798e3bb4c734bde0617c75af54cc797b77efe41..ce715a3edde4fff8cb1d415b6152205940b66a77 100644 (file)
@@ -1,6 +1,6 @@
 i3
 i3status
 redshift
-suckless-tools
+suckless-tools  # contains dmenu; not using virtual packages as that won't be marked manually installed
 xterm
 x11-xserver-utils  # includes xrdb which applies .Xresources files
index c4e6c7f60c6a0795790477f7a1d6230086d28015..f9f40972693560ed0d2c46ccb6c1a855a18e4c90 100644 (file)
@@ -1,3 +1,3 @@
 ansible
-ifupdown
-isc-dhcp-client
+ifupdown  # needed for internet connectivity
+isc-dhcp-client  # needed for internet connectivity
index ada304ed59b6c17618b61729798e4cf247b399dd..3dba602007ef1abd60d46b52e8c54dacfe9a9cf9 100644 (file)
@@ -1,2 +1,2 @@
-acpi-call-dkms
+acpi-call-dkms  # needed for tlp to access Thinkpad-specific features
 tlp
diff --git a/ansible/files/apt-mark/sudo_git_vim_less_openssh b/ansible/files/apt-mark/sudo_git_vim_less_openssh
deleted file mode 100644 (file)
index e37a898..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-git
-less
-openssh-client
-sudo
-vim
diff --git a/ansible/files/apt-mark/various_useful b/ansible/files/apt-mark/various_useful
new file mode 100644 (file)
index 0000000..546f4c8
--- /dev/null
@@ -0,0 +1,6 @@
+alsamixer
+git
+less
+openssh-client
+sudo
+vim