summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--host_vars/mac-archiso.local.ymlbin1030 -> 1058 bytes
-rw-r--r--host_vars/mac-archiso.local.yml.example1
-rw-r--r--roles/bootstrap/defaults/main.yml2
-rw-r--r--roles/bootstrap/meta/argument_specs.yml5
-rw-r--r--roles/bootstrap/tasks/install-archlinux.yml26
5 files changed, 34 insertions, 0 deletions
diff --git a/host_vars/mac-archiso.local.yml b/host_vars/mac-archiso.local.yml
index c685d6a..9e2d07d 100644
--- a/host_vars/mac-archiso.local.yml
+++ b/host_vars/mac-archiso.local.yml
Binary files differ
diff --git a/host_vars/mac-archiso.local.yml.example b/host_vars/mac-archiso.local.yml.example
index 86c660a..65d42e6 100644
--- a/host_vars/mac-archiso.local.yml.example
+++ b/host_vars/mac-archiso.local.yml.example
@@ -43,3 +43,4 @@ partition_extras:
part_end: "100%"
fstype: "ext4"
dev: "{{ partition_disk }}4"
+bootstrap_broadcom_wl: true
diff --git a/roles/bootstrap/defaults/main.yml b/roles/bootstrap/defaults/main.yml
new file mode 100644
index 0000000..552f54e
--- /dev/null
+++ b/roles/bootstrap/defaults/main.yml
@@ -0,0 +1,2 @@
+---
+bootstrap_broadcom_wl: false
diff --git a/roles/bootstrap/meta/argument_specs.yml b/roles/bootstrap/meta/argument_specs.yml
index ba63a46..00c7b31 100644
--- a/roles/bootstrap/meta/argument_specs.yml
+++ b/roles/bootstrap/meta/argument_specs.yml
@@ -14,3 +14,8 @@ argument_specs:
type: "dict"
required: true
description: "Check partition_root argument in role: partition, required options: mount_path"
+ bootstrap_broadcom_wl:
+ type: "bool"
+ required: false
+ default: false
+ description: "Install broadcom-wl driver (required for BCM4360 on Intel 2012 Macs)"
diff --git a/roles/bootstrap/tasks/install-archlinux.yml b/roles/bootstrap/tasks/install-archlinux.yml
index 0140f31..033da1d 100644
--- a/roles/bootstrap/tasks/install-archlinux.yml
+++ b/roles/bootstrap/tasks/install-archlinux.yml
@@ -83,3 +83,29 @@
ansible.builtin.command:
cmd: "arch-chroot {{ mnt_root_path }} pacman -S --noconfirm python3"
changed_when: true
+
+- name: "Install broadcom-wl driver"
+ ansible.builtin.command:
+ cmd: "arch-chroot {{ mnt_root_path }} pacman -S --noconfirm broadcom-wl"
+ changed_when: true
+ when: bootstrap_broadcom_wl
+
+- name: "Blacklist modules conflicting with broadcom-wl"
+ ansible.builtin.copy:
+ dest: "{{ mnt_root_path }}/etc/modprobe.d/broadcom-wl.conf"
+ mode: "0644"
+ content: |
+ blacklist brcmfmac
+ blacklist brcmutil
+ blacklist b43
+ blacklist ssb
+ blacklist bcma
+ when: bootstrap_broadcom_wl
+
+- name: "Load wl module at boot"
+ ansible.builtin.copy:
+ dest: "{{ mnt_root_path }}/etc/modules-load.d/broadcom-wl.conf"
+ mode: "0644"
+ content: |
+ wl
+ when: bootstrap_broadcom_wl