Install some specific things for when running on a mac
This commit is contained in:
parent
1b4259c345
commit
ee1a462570
2 changed files with 26 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
||||||
tasks:
|
tasks:
|
||||||
- include_vars:
|
- include_vars:
|
||||||
file: vars.yml
|
file: vars.yml
|
||||||
|
|
||||||
- import_tasks: tasks/user.yml
|
- import_tasks: tasks/user.yml
|
||||||
- import_tasks: tasks/packages.yml
|
- import_tasks: tasks/packages.yml
|
||||||
|
|
||||||
|
@ -30,4 +31,7 @@
|
||||||
- import_tasks: tasks/dabapps.yml
|
- import_tasks: tasks/dabapps.yml
|
||||||
when: ansible_fqdn == "TOO-Work"
|
when: ansible_fqdn == "TOO-Work"
|
||||||
|
|
||||||
|
- import_tasks: tasks/mac.yml
|
||||||
|
when: "'Mac' in ansible_facts.product_name"
|
||||||
|
|
||||||
- import_tasks: tasks/cleanup.yml
|
- import_tasks: tasks/cleanup.yml
|
||||||
|
|
22
tasks/mac.yml
Normal file
22
tasks/mac.yml
Normal 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
|
Loading…
Reference in a new issue