commit | 738c7c439d76b146daf52f16b3d947af336ca463 | [log] [tgz] |
---|---|---|
author | Wenqing Gu <wenqing.gu@ericsson.com> | Wed Mar 25 13:45:49 2020 +0100 |
committer | Fatih Degirmenci <fdegir@gmail.com> | Tue Apr 21 08:29:29 2020 +0000 |
tree | 39a40897ae3501d41e3916778dfb9012c597f732 | |
parent | 47ef375f290ab96b19a0dbc5cbf00b885c7a2121 [diff] [blame] |
Improve the dns handling Somehow the OS image comes with the line dns = which is not valid and will not be replaced. Change-Id: Ia37217f493a1451d7691424e004e2625a460dac4
diff --git a/playbooks/roles/configure-targethosts/tasks/configure-network-Debian.yml b/playbooks/roles/configure-targethosts/tasks/configure-network-Debian.yml index 58e2c72..10769ae 100644 --- a/playbooks/roles/configure-targethosts/tasks/configure-network-Debian.yml +++ b/playbooks/roles/configure-targethosts/tasks/configure-network-Debian.yml
@@ -71,7 +71,7 @@ - name: Ensure systemd resolved.conf has the correct content lineinfile: path: /etc/systemd/resolved.conf - regexp: "^#?DNS=.*$" + regexp: '^#?(DNS|dns)\s*=.*$' line: "DNS={{ idf.net_config[engine.public_network | default('public')].dns | join(' ') }}" when: idf.net_config[engine.public_network | default('public')].dns is defined