Install some specific things for when running on a mac

This commit is contained in:
Jake Howard 2019-10-03 18:07:36 +01:00
parent 1b4259c345
commit ee1a462570
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 26 additions and 0 deletions

View file

@ -3,6 +3,7 @@
tasks:
- include_vars:
file: vars.yml
- import_tasks: tasks/user.yml
- import_tasks: tasks/packages.yml
@ -30,4 +31,7 @@
- import_tasks: tasks/dabapps.yml
when: ansible_fqdn == "TOO-Work"
- import_tasks: tasks/mac.yml
when: "'Mac' in ansible_facts.product_name"
- import_tasks: tasks/cleanup.yml

22
tasks/mac.yml Normal file
View file

@ -0,0 +1,22 @@
- name: "Install macOS packages"
aur:
skip_installed: true
name: "{{ item }}"
become: true
become_user: aur_builder
when: "item not in installed_packages.stdout_lines"
with_items:
- mbpfan-git
- bcwc-pcie-git
- name: Enable mbpfan service
systemd:
name: mbpfan
enabled: true
state: started
- name: Make the FN key work the correct way`
lineinfile:
path: /etc/modprobe.d/hid_apple.conf
line: options hid_apple fnmode=2
create: true