1
1
Fork 0
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2024-05-08 07:26:02 +02:00

networking: support additional addresses on networking role

Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>
This commit is contained in:
Leonidas Spyropoulos 2023-05-06 17:57:58 +01:00
parent 8176b2223b
commit e033d56c44
No known key found for this signature in database
GPG Key ID: 59E43E106B247368
2 changed files with 6 additions and 0 deletions

View File

@ -32,6 +32,12 @@
- Restart networkd
when: static_dns | default(false)
- name: Configure additional network addresses
template: src=additional_addresses.conf.j2 dest={{ chroot_path }}/etc/systemd/network/10-{{ "dhcp" if dhcp | default(false) else "static" }}-ethernet.network.d/additional_addresses.conf owner=root group=root mode=0644
notify:
- Restart networkd
when: additional_addresses is defined
- name: Create symlink to resolv.conf
file: src=/run/systemd/resolve/stub-resolv.conf dest={{ chroot_path }}/etc/resolv.conf state=link force=yes follow=no owner=root group=root