Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR For Discussion: "Just install systemd-resolved at the same place as systemd-networkd is installed" #3658

Closed
wants to merge 6 commits into from
7 changes: 7 additions & 0 deletions roles/network/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@
- wpasupplicant # 1188kB download: RasPiOS installs this regardless -- client library for connections to a WiFi AP
state: present

# 2023-10-11: Trying to install 'systemd-resolved' alongside 'systemd-networkd'
# but that's not an apt package: it seems to be part of core package 'systemd'
- name: Install systemd-resolved if RasPiOS 12+ (package does not exist on Ubuntu! and is seemingly unneeded on pure Debian 12?)
package:
name: systemd-resolved # 278kB download: For RasPiOS Bookworm (#3657)
when: is_raspbian and os_ver is version('raspbian-12', '>=')

# 2021-08-17: Debian ignores this, according to 2013 post:
# https://serverfault.com/questions/511099/debian-ignores-etc-network-if-pre-up-d-iptables
# - name: Install /etc/network/if-pre-up.d/iptables from template (0755)
Expand Down
4 changes: 2 additions & 2 deletions roles/network/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@
- name: NetworkManager in use
include_tasks: NM-debian.yml
when: network_manager_active
#when: is_debuntu and network_manager_active

- name: systemd-networkd in use
include_tasks: sysd-netd-debian.yml
when: systemd_networkd_active
#when: is_debuntu and systemd_networkd_active
#when: systemd_networkd_active and not network_manager_active # 2023-10-11: Not the right way to solve #3657 (systemd-resolved issue on RasPiOS 12+) as this would damage Ubuntu/Mint.

# 2023-10-11: Should rpi_debian.yml go away in future, now that RasPiOS Bookworm uses NetworkManager?
- name: Raspbian can use dhcpcd only with no N-M or SYS-NETD active
include_tasks: rpi_debian.yml
when: is_raspbian and not network_manager_active
Expand Down