Skip to content

Commit

Permalink
Install more wireless apt packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
gizmoguy committed Jan 28, 2024
1 parent 9376922 commit 29b9a29
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,13 @@ OPTIONS (= is mandatory):
changes before continuing and applying the changes
default: true
type: bool
- wireless_packages
List of packages to install when there are wireless network
devices present
default: [iw, wpasupplicant]
elements: str
type: list
```

Installation
Expand Down
4 changes: 4 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
network_interfaces: []
network_dad_attempts: 100

wireless_packages:
- iw
- wpasupplicant

netplan_renderer: networkd

network_wait_on_change: true
Expand Down
8 changes: 8 additions & 0 deletions meta/argument_specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -255,3 +255,11 @@ argument_specs:
description: Value of sysctl
type: str
required: true

wireless_packages:
description: List of packages to install when there are wireless network devices present
type: list
elements: str
default:
- iw
- wpasupplicant
5 changes: 2 additions & 3 deletions tasks/wifi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
#
# Persistence for rfkill config is provided by systemd-rfkill

- name: Install wpasupplicant if wireless interfaces are configured
- name: Install wireless packages if wireless interfaces are configured
ansible.builtin.apt:
pkg:
- wpasupplicant
pkg: "{{ wireless_packages }}"
install_recommends: false
when: "network_interfaces | selectattr('access_points', 'defined') | list"

Expand Down

0 comments on commit 29b9a29

Please sign in to comment.