From b1ab82b5264cd989b709fd53d8462afb41fc21ff Mon Sep 17 00:00:00 2001 From: Kevin Carter Date: Mon, 15 Aug 2016 09:42:07 -0500 Subject: [PATCH] Added systemd resolver files to Ubuntu16.04 and RHEL7 This change adds the systemd resolver file to the `copy_from_host` include list. This will ensure that all of the resolver information on a given host is also present within a container. Change-Id: I8cb6635f0021c65cf8245ca346c5effcd759115d Signed-off-by: Kevin Carter --- vars/redhat-7.yml | 1 + vars/ubuntu-16.04.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/vars/redhat-7.yml b/vars/redhat-7.yml index 08da4bee..8d805a5d 100644 --- a/vars/redhat-7.yml +++ b/vars/redhat-7.yml @@ -46,6 +46,7 @@ lxc_cache_map: - /etc/yum.repos.d/ - /etc/pki/rpm-gpg/ - /etc/resolv.conf + - /etc/systemd/resolved.conf cache_prep_commands: | yum install -y {{ lxc_cache_packages | join(' ') }} rm -f /usr/bin/python diff --git a/vars/ubuntu-16.04.yml b/vars/ubuntu-16.04.yml index 9388341a..fe5f4ab2 100644 --- a/vars/ubuntu-16.04.yml +++ b/vars/ubuntu-16.04.yml @@ -50,6 +50,7 @@ lxc_cache_map: - /run/resolvconf/ - /etc/resolvconf/ - /etc/resolv.conf + - /etc/systemd/resolved.conf - /root/repo.keys cache_prep_commands: | apt-key add /root/repo.keys