From a5705d3f44cb86b216277c6311f313963d4f9c49 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Tue, 28 Aug 2018 15:37:55 +0200 Subject: o sz-ds: wip. --- ansible/roles/lxc-host/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ansible/roles/lxc-host/tasks') diff --git a/ansible/roles/lxc-host/tasks/main.yml b/ansible/roles/lxc-host/tasks/main.yml index a043d4c..676e27e 100644 --- a/ansible/roles/lxc-host/tasks/main.yml +++ b/ansible/roles/lxc-host/tasks/main.yml @@ -6,7 +6,7 @@ lineinfile: path: "/var/lib/lxc/{{ item.key }}/config" regexp: "lxc.network.ipv4 *=" - line: "lxc.network.ipv4 = {{ item.value.ipv4.address }}" + line: "lxc.network.ipv4 = {{ item.value.ipv4.address }}/{{ item.value.ipv4.netmask }}" with_dict: "{{ lxc_containers }}" - name: Set IPv4 gateway lineinfile: -- cgit v1.2.3