dotfiles/tasks/mac.yml
Jake Howard d6e634b6a2
Always do the Apple fn fix, even if not on a macbook
Makes using an Apple keyboard on a non-macbook sane
2020-03-31 13:12:07 +01:00

23 lines
485 B
YAML

- name: "Install macOS packages"
aur:
skip_installed: true
name: "{{ item }}"
become: true
become_user: aur_builder
when: "item not in installed_packages.stdout_lines"
loop:
- mbpfan-git
- bcwc-pcie-git
- name: Enable mbpfan service
systemd:
name: mbpfan
enabled: true
state: started
- name: Disable power key
lineinfile:
path: /etc/systemd/logind.conf
state: present
regexp: '^HandlePowerKey='
line: 'HandlePowerKey=ignore'