diff options
author | 2018-11-07 16:31:08 +0000 | |
---|---|---|
committer | 2018-11-08 09:23:57 +0000 | |
commit | c53017fa23a3e495f8a091dd7e6be902fc966137 (patch) | |
tree | c4e5c191640e4602f09320441846a39eb426960a /xci/playbooks/roles/bootstrap-host/tasks | |
parent | 5810ddcaac4a7405d683216f877fc0deafefb0f1 (diff) |
xci: bifrost: Respect IDF DNS details during node configuration
The IDF files contain DNS information so we should respect that when
we configure the various XCI nodes. The DNS information is also a
list instead of a string so treat it as such.
Change-Id: I1c4d5eb600baaca35b2838dcafa7a75e59bf6783
Signed-off-by: Markos Chandras <mchandras@suse.de>
Diffstat (limited to 'xci/playbooks/roles/bootstrap-host/tasks')
-rw-r--r-- | xci/playbooks/roles/bootstrap-host/tasks/network_suse.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xci/playbooks/roles/bootstrap-host/tasks/network_suse.yml b/xci/playbooks/roles/bootstrap-host/tasks/network_suse.yml index 8e21b40d..a8f1bf59 100644 --- a/xci/playbooks/roles/bootstrap-host/tasks/network_suse.yml +++ b/xci/playbooks/roles/bootstrap-host/tasks/network_suse.yml @@ -73,7 +73,7 @@ - name: Configure static DNS on SUSE lineinfile: regexp: '^NETCONFIG_DNS_STATIC_SERVERS=.*' - line: "NETCONFIG_DNS_STATIC_SERVERS={{ host_info[inventory_hostname]['public']['dns'] }}" + line: "NETCONFIG_DNS_STATIC_SERVERS=\"{{ host_info[inventory_hostname]['public']['dns'] | join(' ') }}\"" path: "/etc/sysconfig/network/config" state: present when: host_info[inventory_hostname]['public']['dns'] is defined |