Browse Source

inotfy watch tweak

master
parent
commit
946b3d9312
3 changed files with 10 additions and 0 deletions
  1. +2
    -0
      defaults/main.yaml
  2. +1
    -0
      tasks/main.yaml
  3. +7
    -0
      tasks/tweaks.yaml

+ 2
- 0
defaults/main.yaml View File

@@ -31,3 +31,5 @@ debian_security_sources: "{{debian_sources}}"


common_package_intallation: true common_package_intallation: true
microcode_update: false microcode_update: false

increase_maximum_inotify_user_watches: true

+ 1
- 0
tasks/main.yaml View File

@@ -28,6 +28,7 @@
when: not ansible_bender is defined when: not ansible_bender is defined


- import_tasks: network.yaml - import_tasks: network.yaml
- import_tasks: tweaks.yaml


# shell setup # shell setup
- import_tasks: shells/fish.yaml - import_tasks: shells/fish.yaml


+ 7
- 0
tasks/tweaks.yaml View File

@@ -0,0 +1,7 @@
---

- name: increase maximum of inotify user watches
ansible.posix.sysctl:
name: fs.inotify.max_user_watches
value: 524288
sysctl_set: yes