26 lines
521 B
YAML
26 lines
521 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"
|
|
changed_when: False
|
|
listen: __udev_reload
|
|
become: True
|
|
become_user: root
|