From 4af57d4493bce7029d9974313bb6a57dfc7cc25e Mon Sep 17 00:00:00 2001 From: Victor LABORIE Date: Thu, 26 Apr 2018 18:27:31 +0200 Subject: [PATCH] packweb-apache: copy resolv.conf to containers --- packweb-apache/tasks/containers.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packweb-apache/tasks/containers.yml b/packweb-apache/tasks/containers.yml index 5a7f9a3a..905c5317 100644 --- a/packweb-apache/tasks/containers.yml +++ b/packweb-apache/tasks/containers.yml @@ -24,6 +24,14 @@ creates: "/var/lib/lxc/{{ item }}" with_items: "{{ packweb_apache_containers }}" +- name: Copy resolv.conf in containers + copy: + src: /etc/resolv.conf + dest: "/var/lib/lxc/{{ item }}/rootfs/etc/resolv.conf" + remote_src: True + mode: "0644" + with_items: "{{ packweb_apache_containers }}" + - name: Disable network configuration inside container replace: name: "/var/lib/lxc/{{ item }}/rootfs/etc/default/networking"