25 lines
833 B
YAML
25 lines
833 B
YAML
---
|
||
# The home-server project produces a multi-purpose setup using Ansible.
|
||
# Copyright © 2018–2023 Y. Gablin, under the GPL-3.0-or-later license.
|
||
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
|
||
|
||
# https://falkhusemann.de/blog/2012/07/transmission-utp-and-udp-buffer-optimizations/
|
||
- name: increase the number of allowed inotify watches
|
||
copy:
|
||
content: |
|
||
net.core.rmem_max = 16777216
|
||
net.core.wmem_max = 4194304
|
||
dest: /etc/sysctl.d/net_core_mem_max.conf
|
||
mode: 0600
|
||
when: (env == 'prod')
|
||
notify:
|
||
- enforce net_core_mem_max limit
|
||
|
||
### LOCAL COMMIT ⇒ ###
|
||
- name: commit local changes
|
||
include_role: name=etckeeper.inc allow_duplicates=true tasks_from=local.yml
|
||
vars:
|
||
msg: transmission
|
||
### ⇐ LOCAL COMMIT ###
|
||
- meta: flush_handlers
|