packweb-apache: copy resolv.conf to containers
This commit is contained in:
parent
dfbe83b7c1
commit
4af57d4493
|
@ -24,6 +24,14 @@
|
||||||
creates: "/var/lib/lxc/{{ item }}"
|
creates: "/var/lib/lxc/{{ item }}"
|
||||||
with_items: "{{ packweb_apache_containers }}"
|
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
|
- name: Disable network configuration inside container
|
||||||
replace:
|
replace:
|
||||||
name: "/var/lib/lxc/{{ item }}/rootfs/etc/default/networking"
|
name: "/var/lib/lxc/{{ item }}/rootfs/etc/default/networking"
|
||||||
|
|
Loading…
Reference in a new issue