xoxys.homeassistant_docker/handlers/main.yml
Robert Kaussow 9e520daeb8
Some checks failed
continuous-integration/drone/push Build is failing
add changed_when to handler with command
2019-05-04 23:05:23 +02:00

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