packweb-apache: copy resolv.conf to containers

This commit is contained in:
Victor LABORIE 2018-04-26 18:27:31 +02:00
parent dfbe83b7c1
commit 4af57d4493
1 changed files with 8 additions and 0 deletions

View File

@ -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"