Set some sysctl settings so zeroconf works for HA

https://stackoverflow.com/a/46890741
This commit is contained in:
Jake Howard 2020-06-28 17:35:49 +01:00
parent d25080781e
commit 9f09554053
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -32,6 +32,26 @@
register: config_file
become: true
- name: Bump IGMP max memberships
sysctl:
name: net.ipv4.igmp_max_memberships
value: "40"
sysctl_set: yes
state: present
reload: yes
sysctl_file: /etc/sysctl.d/99-sysctl.conf
become: true
- name: Bump IGMP max MSF
sysctl:
name: net.ipv4.igmp_max_msf
value: "20"
sysctl_set: yes
state: present
reload: yes
sysctl_file: /etc/sysctl.d/99-sysctl.conf
become: true
- name: Cycle home-assistant container
docker_compose:
project_src: /opt/home-assistant