machine_setup/ansible/roles/base/tasks/linux.yaml
Tom Alexander fcf32657c3
Disable usb autosuspend for keyboard and mouse.
USB auto suspend seems to only happen when the devices are plugged in at boot (which generally means when my laptop is connected to the dock before boot) but it is very annoying because some keypresses get lost and my mouse does not work unless I click first.
2023-08-16 15:51:48 -04:00

43 lines
896 B
YAML

- name: Install packages
package:
name:
- psmisc
- pkgfile
- linux-firmware
- bind # dig
- man-db
- uutils-coreutils
- usbutils # for lsusb
state: present
- name: Start pkgfile update service
systemd:
state: started
name: pkgfile-update.timer
daemon_reload: yes
enabled: yes
# Of questionable value since I don't use swap on my machines
- name: Configure sysctls for swap
sysctl:
name: "{{ item.name }}"
value: "{{ item.value }}"
state: present
sysctl_file: /etc/sysctl.d/swap.conf
loop:
- name: vm.swappiness
value: 10
- name: Install scripts
copy:
src: "files/{{ item.src }}"
dest: "{{ item.dest }}"
mode: 0755
owner: root
group: wheel
loop:
- src: mount_disk_image
dest: /usr/local/bin/mount_disk_image
- src: watch_linux
dest: /usr/local/bin/ww