mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Merge pull request #3319 from jvonau/ub-net-install-fixes
Set default for use in netplan.yml and wording
This commit is contained in:
commit
4307f65942
3 changed files with 8 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
||||||
- name: Install dnsmasq -- configure LATER in 'network', after Stage 9
|
- 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)
|
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:
|
package:
|
||||||
name: networkd-dispatcher # 15kB download: Dispatcher service for systemd-networkd connection status changes
|
name: networkd-dispatcher # 15kB download: Dispatcher service for systemd-networkd connection status changes
|
||||||
state: present
|
state: present
|
||||||
|
|
|
@ -4,6 +4,12 @@
|
||||||
register: netplan
|
register: netplan
|
||||||
#ignore_errors: True # pre 17.10 doesn't use 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?!)
|
# 2022-07-22: Copied from detected_network.yml (REMOVE DUPLICATE CODE LATER?!)
|
||||||
- name: "Set 'systemd_networkd_active: True' if local_facts.systemd_networkd confirms"
|
- name: "Set 'systemd_networkd_active: True' if local_facts.systemd_networkd confirms"
|
||||||
set_fact:
|
set_fact:
|
||||||
|
|
|
@ -71,7 +71,7 @@
|
||||||
enabled: yes
|
enabled: yes
|
||||||
masked: no
|
masked: no
|
||||||
|
|
||||||
- name: Enable & Restart networkd-dispatcher.service
|
- name: Enable & Restart networkd-dispatcher.service except for Linux Mint
|
||||||
systemd:
|
systemd:
|
||||||
name: networkd-dispatcher
|
name: networkd-dispatcher
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue