mirror of
https://github.com/pigmonkey/spark.git
synced 2026-01-23 02:24:09 +00:00
increase amount of inotify watchers for git-annex assistant
annex all the things
This commit is contained in:
parent
16f55667c5
commit
3a1a8cb50b
4 changed files with 11 additions and 0 deletions
1
roles/git-annex/files/99-max_watches.conf
Normal file
1
roles/git-annex/files/99-max_watches.conf
Normal file
|
|
@ -0,0 +1 @@
|
|||
fs.inotify.max_user_watches = 100000
|
||||
|
|
@ -2,3 +2,4 @@
|
|||
dependencies:
|
||||
- { role: networkmanager }
|
||||
- { role: systemd }
|
||||
- { role: sysctl }
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
3
roles/sysctl/handlers/main.yml
Normal file
3
roles/sysctl/handlers/main.yml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
- name: reload sysctl
|
||||
command: sysctl --system
|
||||
Loading…
Add table
Add a link
Reference in a new issue