From ee1a462570b48dae83e97011aa6aeb9494c6633b Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 3 Oct 2019 18:07:36 +0100 Subject: [PATCH] Install some specific things for when running on a mac --- dotfiles.yml | 4 ++++ tasks/mac.yml | 22 ++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 tasks/mac.yml diff --git a/dotfiles.yml b/dotfiles.yml index 6882fd4..2d587c6 100644 --- a/dotfiles.yml +++ b/dotfiles.yml @@ -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 diff --git a/tasks/mac.yml b/tasks/mac.yml new file mode 100644 index 0000000..8b5b06e --- /dev/null +++ b/tasks/mac.yml @@ -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