machine_setup/ansible/roles/base/tasks/linux.yaml
Tom Alexander 02568d77d9
Remove Linux sysctls that are getting overwritten.
This removes the settings for vm.dirty_writeback_centisecs and vm.laptop_mode because they are getting overwritten, which makes the task always report yellow. I suspect that TLP is overwriting them but I have not confirmed.
2023-03-14 15:58:57 -04:00

39 lines
789 B
YAML

- name: Install packages
package:
name:
- psmisc
- pkgfile
- linux-firmware
- bind # dig
- man-db
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