25 lines
499 B
YAML
25 lines
499 B
YAML
---
|
|
- name: Restart homeassistant service
|
|
systemd:
|
|
state: restarted
|
|
daemon_reload: yes
|
|
name: homeassistant
|
|
listen: __homeassistant_restart
|
|
become: True
|
|
become_user: root
|
|
|
|
- name: Reload nginx
|
|
systemd:
|
|
state: reloaded
|
|
name: nginx
|
|
listen: __nginx_reload
|
|
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
|