summaryrefslogtreecommitdiffstats
path: root/roles/bootstrap/tasks/install-ubuntu-mac.yml
blob: 2cdbd7dc017c4a756b5500f225ee899dea1e228c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
- name: "Install bcmwl-kernel-source in chroot"
  ansible.builtin.command:
    cmd: "arch-chroot {{ mnt_root_path }} apt-get install -y bcmwl-kernel-source"
  environment:
    MAKEFLAGS: ""
  changed_when: true
  failed_when: false

- name: "Configure unconfigured packages in chroot"
  ansible.builtin.command:
    cmd: "arch-chroot {{ mnt_root_path }} dpkg --configure -a"
  environment:
    MAKEFLAGS: ""
  changed_when: true
  failed_when: false

- 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

- name: "Load wl module at boot"
  ansible.builtin.lineinfile:
    path: "{{ mnt_root_path }}/etc/modules"
    line: "wl"
    create: true
    mode: "0644"