Skip to content

Commit

Permalink
Merge pull request #3319 from jvonau/ub-net-install-fixes
Browse files Browse the repository at this point in the history
Set default for use in netplan.yml and wording
  • Loading branch information
holta committed Jul 23, 2022
2 parents b735672 + b7b200c commit 4307f65
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion roles/network/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
- name: Install dnsmasq -- configure LATER in 'network', after Stage 9
include_tasks: roles/network/tasks/dnsmasq.yml # Invoked by 1-prep (so full path needed)

- name: Install package networkd-dispatcher (OS's other than RasPiOS)
- name: Install package networkd-dispatcher (OS's other than RasPiOS and Linux Mint)
package:
name: networkd-dispatcher # 15kB download: Dispatcher service for systemd-networkd connection status changes
state: present
Expand Down
6 changes: 6 additions & 0 deletions roles/network/tasks/netplan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
register: netplan
#ignore_errors: True # pre 17.10 doesn't use netplan

# 2022-07-23: PR #3319 "Ubuntu variants [all] use NetworkManager as the backend
# for use with netplan and ship with systemd-networkd present but disabled"
- name: "Force default 'systemd_networkd_active: False' -- nec b/c network/default/main.yml is omitted when 1-prep directly invokes network/tasks/install.yml"
set_fact:
systemd_networkd_active: False

# 2022-07-22: Copied from detected_network.yml (REMOVE DUPLICATE CODE LATER?!)
- name: "Set 'systemd_networkd_active: True' if local_facts.systemd_networkd confirms"
set_fact:
Expand Down
2 changes: 1 addition & 1 deletion roles/network/tasks/sysd-netd-debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
enabled: yes
masked: no

- name: Enable & Restart networkd-dispatcher.service
- name: Enable & Restart networkd-dispatcher.service except for Linux Mint
systemd:
name: networkd-dispatcher
state: restarted
Expand Down

0 comments on commit 4307f65

Please sign in to comment.