xoxys.homeassistant_docker/handlers/main.yml

26 lines
521 B
YAML
Raw Normal View History

2019-04-27 11:52:50 +00:00
---
- name: Restart homeassistant service
systemd:
state: restarted
daemon_reload: yes
name: homeassistant
listen: __homeassistant_restart
become: True
become_user: root
2019-04-27 12:30:38 +00:00
- name: Reload nginx
systemd:
state: reloaded
name: nginx
listen: __nginx_reload
delegate_to: "{{ homeassistant_nginx_server }}"
become: True
become_user: root
2019-05-04 20:59:18 +00:00
- name: Reload udev rules
command: "udevadm control --reload-rules"
changed_when: False
2019-05-04 20:59:18 +00:00
listen: __udev_reload
become: True
become_user: root