Skip to content

Commit

Permalink
[rtl8192cu] disable wifi.scan-rand-mac-address if network-manager is …
Browse files Browse the repository at this point in the history
…installed

Raspbian Steretchから、NetworkManagerでwifi.scan-rand-mac-addressが
デフォルトで有効になったが、RTL8192CUでは動作しない。
NetworkManagerがインストールされていたら無効化する設定を含めた。
  • Loading branch information
Akkiesoft committed Nov 7, 2018
1 parent 2351c8f commit 73ec7cc
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions ansible/roles/rtl8192cu/tasks/main.yml
Expand Up @@ -5,3 +5,18 @@
state: present
create: yes
become: yes

- name: check network-manager is installed
stat:
path: /etc/NetworkManager/NetworkManager.conf
register: nmconf

- name: disable wifi.scan-rand-mac-address if network-manager is installed
blockinfile:
path: /etc/NetworkManager/NetworkManager.conf
block: |
[device]
wifi.scan-rand-mac-address=no
when: nmconf.stat.exists
become: yes

0 comments on commit 73ec7cc

Please sign in to comment.