diff --git a/templates/prep-scripts/debian_prep.sh.j2 b/templates/prep-scripts/debian_prep.sh.j2 index c8a52506..655d44a0 100644 --- a/templates/prep-scripts/debian_prep.sh.j2 +++ b/templates/prep-scripts/debian_prep.sh.j2 @@ -52,6 +52,6 @@ update-locale LANG={{ locale }} # Set the IP of the lxcbr0 interface as the DNS server mkdir -p /etc/systemd/resolved.conf.d echo "[Resolve]" > /etc/systemd/resolved.conf.d/openstack-ansible.conf -echo "{{ lxc_net_address }}" >> /etc/systemd/resolved.conf.d/openstack-ansible.conf +echo "DNS={{ lxc_net_address }}" >> /etc/systemd/resolved.conf.d/openstack-ansible.conf systemctl enable systemd-networkd {{ lxc_cache_prep_post_commands }}