From 715aaa882be225b83788eb032d7e690687d7ce0a Mon Sep 17 00:00:00 2001 From: Sven Velt Date: Thu, 18 Feb 2021 12:10:27 +0100 Subject: [PATCH] Raise inotify limit via sysctl --- prepare_lxc_hosts.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/prepare_lxc_hosts.yml b/prepare_lxc_hosts.yml index 07f5eb7..55be343 100644 --- a/prepare_lxc_hosts.yml +++ b/prepare_lxc_hosts.yml @@ -63,6 +63,16 @@ reload: yes + - name: Raise inotify limit + sysctl: + name: fs.inotify.max_user_instances + value: '1024' + sysctl_file: 30-lxc-inotify.conf + sysctl_set: yes + state: present + reload: yes + + - name: Disable lxc-net service: name: lxc-net