Install systemd-resolved into container base image for Ubuntu Noble

Change-Id: I3f797b0dbbc2343b564229b1f05fa0e70ac85216
This commit is contained in:
Jonathan Rosser 2024-07-17 16:20:19 +01:00
parent 7befe79db8
commit bab5371c63

View File

@ -40,6 +40,10 @@ _lxc_cache_distro_libpython:
bookworm: libpython3.11
noble: libpython3.12
_lxc_cache_need_systemd_resolved: "{{ ansible_facts['distribution'] == 'Debian' or
(ansible_facts['distribution'] == 'Ubuntu' and
ansible_facts['distribution_major_version'] is ansible.builtin.version('24', 'ge')) }}"
# This list should contain a minimum set of packages. Add extra packages via roles that require them.
_lxc_cache_distro_packages:
- ca-certificates
@ -56,6 +60,6 @@ _lxc_cache_distro_packages:
- sudo
- systemd
- systemd-sysv
- "{{ (ansible_facts['distribution'] == 'Debian') | ternary('systemd-resolved', '') }}"
- "{{ _lxc_cache_need_systemd_resolved | ternary('systemd-resolved', '') }}"
- udev
- tzdata