increase amount of inotify watchers for git-annex assistant

annex all the things
This commit is contained in:
Pig Monkey 2016-04-28 15:21:51 -07:00
parent 16f55667c5
commit 3a1a8cb50b
4 changed files with 11 additions and 0 deletions

View file

@ -0,0 +1 @@
fs.inotify.max_user_watches = 100000

View file

@ -2,3 +2,4 @@
dependencies:
- { role: networkmanager }
- { role: systemd }
- { role: sysctl }

View file

@ -31,3 +31,9 @@
state=absent
line="git-annex@{{ user.name }}.service,allow_offline"
when: gitannex is not defined or gitannex.stop_on_untrusted is not defined or gitannex.stop_on_untrusted != True
- name: Increase the amount of inotify watchers
copy: src=99-max_watches.conf dest=/etc/sysctl.d/99-max_watches.conf
when: gitannex is defined
notify:
- reload sysctl

View file

@ -0,0 +1,3 @@
---
- name: reload sysctl
command: sysctl --system