From c24718759b47fc1da4923536a01074a9d2e78e63 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sat, 4 May 2019 22:59:18 +0200 Subject: [PATCH] reload udev rules when changed --- handlers/main.yml | 6 ++++++ tasks/install.yml | 1 + 2 files changed, 7 insertions(+) diff --git a/handlers/main.yml b/handlers/main.yml index 64fa207..6dc4c7c 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -16,3 +16,9 @@ delegate_to: "{{ homeassistant_nginx_server }}" become: True become_user: root + +- name: Reload udev rules + command: "udevadm control --reload-rules" + listen: __udev_reload + become: True + become_user: root diff --git a/tasks/install.yml b/tasks/install.yml index 5245577..efcb4cd 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -40,6 +40,7 @@ content: "{{ homeassistant_cmdline_content }}" dest: /boot/cmdline.txt when: homeassistant_cmdline_override_enabled + notify: __udev_reload - name: Exclude serial devices from ModemManager template: