diff --git a/tasks/lxc_container_config.yml b/tasks/lxc_container_config.yml index 0e82fbf..b8eb004 100644 --- a/tasks/lxc_container_config.yml +++ b/tasks/lxc_container_config.yml @@ -28,8 +28,8 @@ - name: Ensure containers have access RO cgroups lineinfile: dest: "/var/lib/lxc/{{ inventory_hostname }}/config" - line: "lxc.mount.auto = proc:rw sys:ro cgroup:ro" - regexp: "^lxc.mount.auto = proc:rw sys:ro cgroup:ro$" + line: "lxc.mount.auto = proc:mixed sys:ro cgroup:mixed" + regexp: "^lxc.mount.auto = proc:(rw|mixed) sys:ro cgroup:(ro|mixed)$" insertafter: "^lxc.mount.auto" backup: "true" delegate_to: "{{ physical_host }}"