From 8c20eba8d31825928b8a84f36b6334a1e24fad83 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Mon, 5 Sep 2022 00:53:27 +0200 Subject: raspios/image/firstrun: trigger restart of dhcpd after network config --- roles/raspios/image/templates/firstrun.sh.j2 | 1 + 1 file changed, 1 insertion(+) (limited to 'roles') diff --git a/roles/raspios/image/templates/firstrun.sh.j2 b/roles/raspios/image/templates/firstrun.sh.j2 index 6dc4980c..93aa3483 100644 --- a/roles/raspios/image/templates/firstrun.sh.j2 +++ b/roles/raspios/image/templates/firstrun.sh.j2 @@ -19,6 +19,7 @@ static ip_address={{ network.primary.address }} static routers={{ network.primary.gateway }} static domain_name_servers={{ network.nameservers | join(' ') }} EOF +systemctl restart dhcpcd.service {% endif %} {% if ansible_port != 22 %} -- cgit v1.2.3