From 9f095540537665152da13ce9795cc6346591fbe0 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 28 Jun 2020 17:35:49 +0100 Subject: [PATCH] Set some `sysctl` settings so zeroconf works for HA https://stackoverflow.com/a/46890741 --- ansible/roles/home-assistant/tasks/main.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/ansible/roles/home-assistant/tasks/main.yml b/ansible/roles/home-assistant/tasks/main.yml index 122cbe5..172e88f 100644 --- a/ansible/roles/home-assistant/tasks/main.yml +++ b/ansible/roles/home-assistant/tasks/main.yml @@ -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