Fix resolved config on Debian

Currently, file /etc/systemd/resolved.conf.d/openstack-ansible.conf has
incorrect format and is being ignored:

```
systemd-resolved[740]:
/etc/systemd/resolved.conf.d/openstack-ansible.conf:2:
Missing '=', ignoring line.
```

Change-Id: I23529b0dd032cbb6ba59acc3d3b668c06847da08
(cherry picked from commit 56d69ce9e8)
This commit is contained in:
Damian Dabrowski 2024-01-05 12:24:51 +01:00 committed by Dmitriy Rabotyagov
parent 66021a200c
commit 6b0c92fe40
1 changed files with 6 additions and 0 deletions

View File

@ -50,6 +50,12 @@ update-locale LANG={{ locale }}
{% endfor %}
# Set the IP of the lxcbr0 interface as the DNS server
<<<<<<< HEAD (66021a Refactor LXC image expiration)
echo "nameserver {{ lxc_net_address }}" > /etc/resolv.conf
=======
mkdir -p /etc/systemd/resolved.conf.d
echo "[Resolve]" > /etc/systemd/resolved.conf.d/openstack-ansible.conf
echo "DNS={{ lxc_net_address }}" >> /etc/systemd/resolved.conf.d/openstack-ansible.conf
>>>>>>> CHANGE (56d69c Fix resolved config on Debian)
systemctl enable systemd-networkd
{{ lxc_cache_prep_post_commands }}